Example of the Day Management

Loading...
96 days remaining
98 future examples
Feb 24, 2026Difficulty 3
git diff --pager=<pager>

Show unstaged changes with the output forced through a specific pager program.

Feb 25, 2026Difficulty 2
git diff <branchname1>..<branchname2>

Show all code changes between two branches as a unified diff.

Feb 26, 2026Difficulty 2
git push <remote> <branchname>

Upload local commits for a specific branch to a chosen remote repository.

Feb 27, 2026Difficulty 4
git log --pretty=format:<format_string>

Show commit history with a fully customized output format.

Feb 28, 2026Difficulty 3
git rebase -i <commit>~<number>

Interactively rewrite the last `<number>` commits before `<commit>` to edit, squash, reorder, or drop them.

Mar 01, 2026Difficulty 3
git log --author=<author>

Show commit history filtered to only those made by a specific author.

Mar 02, 2026Difficulty 3
git remote set-url <remote> <url>

Change the URL of an existing Git remote.

Mar 03, 2026Difficulty 5
git bundle list-heads <path>

Show the branch and tag heads stored in a Git bundle file.

Mar 04, 2026Difficulty 3
git blame -w file.txt

Shows who last modified each line in file.txt, ignoring whitespace-only changes.

Mar 05, 2026Difficulty 3
git blame -C -C <path>

Annotate each line of a file with its last commit and author, tracking code copies across files.

Mar 06, 2026Difficulty 3
git check-ignore -v <path>

Show why a specific file is ignored by `.gitignore` and which rule causes it.

Mar 07, 2026Difficulty 3
git worktree list

Show all worktrees linked to the current Git repository and their paths.

Mar 08, 2026Difficulty 4
git remote get-url <remote>

Show the URL used by a given Git remote (like `origin`).

Mar 09, 2026Difficulty 4
git cat-file -t <hash>

Display the type of a Git object specified by `<hash>`.

Mar 10, 2026Difficulty 4
git bisect run <path>

Automatically runs a script at each step of `git bisect` to find the commit that introduced a bug.

Mar 11, 2026Difficulty 4
git am

Apply one or more patch files from email-style mbox input as local commits.

Mar 12, 2026Difficulty 2
git diff --name-status

Lists changed files with codes indicating added, modified, or deleted status.

Mar 13, 2026Difficulty 3
git instaweb

Launches a temporary local web server and opens your Git repository in a browser for quick browsing.

Mar 14, 2026Difficulty 3
git fsck

Checks the integrity and connectivity of objects in a Git repository.

Mar 15, 2026Difficulty 2
git log --follow -- <path>

Show the commit history for a single file, including before it was renamed or moved.

Mar 16, 2026Difficulty 3
git bisect visualize

Show commits between the known good and bad revisions during a bisect session.

Mar 17, 2026Difficulty 2
git branch --no-merged

List local branches that haven’t been merged into the current branch.

Mar 18, 2026Difficulty 4
git fsck --lost-found

Recovers unreachable Git objects and places them in .git/lost-found for inspection

Mar 19, 2026Difficulty 5
git bisect log

Displays the recorded steps of a Git bisect session

Mar 20, 2026Difficulty 3
git reset --merge

Abort a merge and reset files to the previous HEAD while preserving unrelated local changes.

Mar 21, 2026Difficulty 3
git archive --format=zip

Create a ZIP archive of the repository’s files at a given commit or branch.

Mar 22, 2026Difficulty 3
git archive --remote=<repo> <commit>

Create a tar archive of a remote repository at a specific commit without cloning it.

Mar 23, 2026Difficulty 3
git filter-branch --subdirectory-filter <dir_folder>

Rewrite history so only the contents and history of a specific subdirectory remain in the repository.

Mar 24, 2026Difficulty 3
git revert --no-commit <commit>

Prepare a revert of a specific commit without creating the commit automatically.

Mar 25, 2026Difficulty 2
git fetch <remote>

Download new commits, branches, and tags from a specific remote without changing your current work.

Mar 26, 2026Difficulty 2
git log --oneline --graph

Displays condensed repository history in a graphical format.

Mar 27, 2026Difficulty 2
git checkout HEAD <path>

Restore a file from the most recent commit

Mar 28, 2026Difficulty 2
git add .

Stage all changes in the current directory

Mar 29, 2026Difficulty 1
git pull <remote>

Fetches and merges remote changes into the current branch

Mar 30, 2026Difficulty 2
git clone <repo_url> <local_repo_name>

Creates a copy of a remote repository with a different name on your local machine

Mar 31, 2026Difficulty 2
git push --force <remote>

Forcefully updates the `origin` remote with your local commits, overwriting any conflicting history.

Apr 01, 2026Difficulty 1
git restore --staged <path>

Unstages the specified file/s

Apr 02, 2026Difficulty 1
git restore .

Reverts all uncommitted changes in the current directory.

Apr 03, 2026Difficulty 1
git rm -f <path>

Forcefully removes a file from the working directory and stages the deletion.

Apr 04, 2026Difficulty 1
git commit -a

Commits any changes to tracked files in the current repository.

Apr 05, 2026Difficulty 1
git diff --staged

Displays changes between the index and the last commit.

Apr 06, 2026Difficulty 1
git status -s

Display a short summary of the working directory's status

Apr 07, 2026Difficulty 2
git pull --squash

Fetches and merges remote updates into your current branch as a single squashed commit.

Apr 08, 2026Difficulty 2
git log --all -- <path>

List complete commit history involving a specific file.

Apr 09, 2026Difficulty 2
git add -p

Interactively stage file changes

Apr 10, 2026Difficulty 2
git shortlog

Summarize git commit history by author.

Apr 11, 2026Difficulty 2
git stash drop

Delete the most recent stash entry

Apr 12, 2026Difficulty 1
git tag -a <version_number>

Creates an annotated Git tag named `<version_number>` pointing at the current commit.

Apr 13, 2026Difficulty 2
git branch --contains <commit>

List local branches that include the specified commit.

Apr 14, 2026Difficulty 4
git log -G<regexp>

Searches commit diffs for changes matching a regex pattern.

Apr 15, 2026Difficulty 3
git branch --unset-upstream

Remove the upstream tracking branch from the current branch.

Apr 16, 2026Difficulty 4
git log --merge --oneline

Displays commits relevant to the current merge in a concise one-line format.

Apr 17, 2026Difficulty 3
git diff --name-only --diff-filter=U

List filenames of files with merge conflicts

Apr 18, 2026Difficulty 1
git switch -c <branchname>

Creates a new branch and switches to it.

Apr 19, 2026Difficulty 3
git apply <path>

Apply a patch file’s changes directly to the working directory

Apr 20, 2026Difficulty 1
git switch <branchname>

Switch to the specified branch

Apr 21, 2026Difficulty 3
git describe --tags

Shows the nearest tag name reachable from the current commit.

Apr 22, 2026Difficulty 4
git name-rev <commit>

Shows a friendly reference name for a commit hash

Apr 23, 2026Difficulty 3
git describe --always --dirty

Show a short identifier for the current commit, marking it 'dirty' if there are uncommitted changes.

Apr 24, 2026Difficulty 2
git notes add -m <note-text>

Add a note to the current commit without altering its history

Apr 25, 2026Difficulty 3
git bundle create <filename> <branchname>

Bundles the commit history of <branchname> into a single file named <filename>.

Apr 26, 2026Difficulty 3
git notes show <commit>

Displays the note text attached to a specific commit.

Apr 27, 2026Difficulty 3
git fetch --dry-run

Preview remote changes without actually downloading them.

Apr 28, 2026Difficulty 3
git show-ref --heads

Show commit hashes and reference names for all local branches.

Apr 29, 2026Difficulty 2
git count-objects -v

Prints counts and disk usage of loose and packed objects in the repository.

Apr 30, 2026Difficulty 2
git branch --merged

List local branches fully merged into the current branch.

May 01, 2026Difficulty 3
git bisect stop

Stops the bisect session and restores the repository to its original state.

May 02, 2026Difficulty 1
git reflog

Show a log of all Git references

May 03, 2026Difficulty 1
git fetch

Download new commits, branches, and tags from the remote without changing your current files.

May 04, 2026Difficulty 1
git checkout -b <branchname>

Create a new branch and switch to it

May 05, 2026Difficulty 1
git branch -m <old_branchname> <new_branchname>

Rename a branch

May 06, 2026Difficulty 1
git branch -v

List all branches including commit information

May 07, 2026Difficulty 2
git rebase <branchname>

Replay your current branch’s commits on top of another branch to create a cleaner, linear history.

May 08, 2026Difficulty 2
git checkout -b <branchname1> <remote>/<branchname2>

Clone a remote branch and switch to it

May 09, 2026Difficulty 1
git restore --staged

Removes files from the staging area without altering their content in the working directory.

May 10, 2026Difficulty 1
git checkout <branchname>

Switch to a different branch

May 11, 2026Difficulty 1
git branch -M <branchname>

Forcefully rename the current branch to <branchname>

May 12, 2026Difficulty 1
git branch <branchname>

Creates a new branch with the specified name.

May 13, 2026Difficulty 1
git merge <branchname>

Merge the specified branch into the current branch, combining their histories.

May 14, 2026Difficulty 1
git rm <path>

Remove a file from the working directory and staging area.

May 15, 2026Difficulty 1
git diff <commit> --name-only

Show only the names of files that changed compared to a specific commit.

May 16, 2026Difficulty 1
git add <path>

Stages changes in the specified <path> so they are included in the next commit.

May 17, 2026Difficulty 1
git rm --cached <path>

Remove files only from the git index

May 18, 2026Difficulty 1
git commit -m "<message>"

Create a new commit with the staged changes and attach a message describing them.

May 19, 2026Difficulty 1
git clone <repo_url>

Download a remote Git repository to your local machine as a new directory.

May 20, 2026Difficulty 1
git log

Show the commit history

May 21, 2026Difficulty 2
git blame <path>

Show who last changed each line of a file and in which commit.

May 22, 2026Difficulty 1
git pull

Fetch and merge remote changes

May 23, 2026Difficulty 1
git init

Initialize a Git repository in the current directory

May 24, 2026Difficulty 1
git status

Show the status of the current repository

May 25, 2026Difficulty 1
git diff HEAD

Show uncommitted changes

May 26, 2026Difficulty 1
git add -A

Add all new and changed files to the staging area

May 27, 2026Difficulty 1
git branch

List all branches

May 28, 2026Difficulty 1
git branch -d <branchname>

Delete a branch

May 29, 2026Difficulty 1
git push

Upload local commits from your current branch to its configured remote branch.

May 30, 2026Difficulty 3
git config pull.rebase false

Configures Git to merge instead of rebasing when pulling changes.

May 31, 2026Difficulty 3
git diff @{push}

Compare your working directory to the commit recorded at your last push

Jun 01, 2026Difficulty 2
git log --all --grep=<searchterm>

Display all commits across branches whose message contains a specified keyword.