Example of the Day Management

Loading...
76 days remaining
78 future examples
Jun 27, 2026Difficulty 1
git rm --cached <path>

Remove files only from the git index

Jun 28, 2026Difficulty 1
git commit -m "<message>"

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

Jun 29, 2026Difficulty 1
git push

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

Jun 30, 2026Difficulty 1
git log -<number>

Shows the last `<number>` commits in the log.

Jul 01, 2026Difficulty 2
git log ..<branchname>

Lists the commits that are available in <branchname> but not in the current branch

Jul 02, 2026Difficulty 2
git branch -r

Lists all remote branches in the repository.

Jul 03, 2026Difficulty 2
git stash save <message>

Stash changes with a custom message

Jul 04, 2026Difficulty 2
git stash pop

Applies the latest stashed changes to your working directory and removes that stash entry.

Jul 05, 2026Difficulty 4
git log <commitA>..<commitB>

Show the commits that are reachable from the second commit but not from the first.

Jul 06, 2026Difficulty 2
git remote add <remote> <url>

Add a new named remote pointing to a Git repository URL.

Jul 07, 2026Difficulty 3
git diff --pager=<pager>

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

Jul 08, 2026Difficulty 2
git diff <branchname1>..<branchname2>

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

Jul 09, 2026Difficulty 2
git push <remote> <branchname>

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

Jul 10, 2026Difficulty 4
git log --pretty=format:<format_string>

Show commit history with a fully customized output format.

Jul 11, 2026Difficulty 3
git rebase -i <commit>~<number>

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

Jul 12, 2026Difficulty 3
git log --author=<author>

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

Jul 13, 2026Difficulty 3
git remote set-url <remote> <url>

Change the URL of an existing Git remote.

Jul 14, 2026Difficulty 5
git bundle list-heads <path>

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

Jul 15, 2026Difficulty 3
git blame -w file.txt

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

Jul 16, 2026Difficulty 3
git blame -C -C <path>

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

Jul 17, 2026Difficulty 3
git check-ignore -v <path>

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

Jul 18, 2026Difficulty 3
git worktree list

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

Jul 19, 2026Difficulty 4
git remote get-url <remote>

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

Jul 20, 2026Difficulty 4
git cat-file -t <hash>

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

Jul 21, 2026Difficulty 4
git bisect run <path>

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

Jul 22, 2026Difficulty 4
git am

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

Jul 23, 2026Difficulty 2
git diff --name-status

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

Jul 24, 2026Difficulty 3
git instaweb

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

Jul 25, 2026Difficulty 3
git fsck

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

Jul 26, 2026Difficulty 2
git log --follow -- <path>

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

Jul 27, 2026Difficulty 3
git bisect visualize

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

Jul 28, 2026Difficulty 2
git branch --no-merged

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

Jul 29, 2026Difficulty 4
git fsck --lost-found

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

Jul 30, 2026Difficulty 5
git bisect log

Displays the recorded steps of a Git bisect session

Jul 31, 2026Difficulty 3
git reset --merge

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

Aug 01, 2026Difficulty 3
git archive --format=zip

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

Aug 02, 2026Difficulty 3
git archive --remote=<repo> <commit>

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

Aug 03, 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.

Aug 04, 2026Difficulty 3
git revert --no-commit <commit>

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

Aug 05, 2026Difficulty 2
git fetch <remote>

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

Aug 06, 2026Difficulty 2
git log --oneline --graph

Displays condensed repository history in a graphical format.

Aug 07, 2026Difficulty 2
git checkout HEAD <path>

Restore a file from the most recent commit

Aug 08, 2026Difficulty 2
git add .

Stage all changes in the current directory

Aug 09, 2026Difficulty 1
git pull <remote>

Fetches and merges remote changes into the current branch

Aug 10, 2026Difficulty 2
git clone <repo_url> <local_repo_name>

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

Aug 11, 2026Difficulty 2
git push --force <remote>

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

Aug 12, 2026Difficulty 1
git restore --staged <path>

Unstages the specified file/s

Aug 13, 2026Difficulty 1
git restore .

Reverts all uncommitted changes in the current directory.

Aug 14, 2026Difficulty 1
git rm -f <path>

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

Aug 15, 2026Difficulty 1
git commit -a

Commits any changes to tracked files in the current repository.

Aug 16, 2026Difficulty 1
git diff --staged

Displays changes between the index and the last commit.

Aug 17, 2026Difficulty 1
git status -s

Display a short summary of the working directory's status

Aug 18, 2026Difficulty 2
git pull --squash

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

Aug 19, 2026Difficulty 2
git log --all -- <path>

List complete commit history involving a specific file.

Aug 20, 2026Difficulty 2
git add -p

Interactively stage file changes

Aug 21, 2026Difficulty 2
git shortlog

Summarize git commit history by author.

Aug 22, 2026Difficulty 2
git stash drop

Delete the most recent stash entry

Aug 23, 2026Difficulty 1
git tag -a <version_number>

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

Aug 24, 2026Difficulty 2
git branch --contains <commit>

List local branches that include the specified commit.

Aug 25, 2026Difficulty 4
git log -G<regexp>

Searches commit diffs for changes matching a regex pattern.

Aug 26, 2026Difficulty 3
git branch --unset-upstream

Remove the upstream tracking branch from the current branch.

Aug 27, 2026Difficulty 4
git log --merge --oneline

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

Aug 28, 2026Difficulty 3
git diff --name-only --diff-filter=U

List filenames of files with merge conflicts

Aug 29, 2026Difficulty 1
git switch -c <branchname>

Creates a new branch and switches to it.

Aug 30, 2026Difficulty 3
git apply <path>

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

Aug 31, 2026Difficulty 1
git switch <branchname>

Switch to the specified branch

Sep 01, 2026Difficulty 3
git describe --tags

Shows the nearest tag name reachable from the current commit.

Sep 02, 2026Difficulty 4
git name-rev <commit>

Shows a friendly reference name for a commit hash

Sep 03, 2026Difficulty 3
git describe --always --dirty

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

Sep 04, 2026Difficulty 2
git notes add -m <note-text>

Add a note to the current commit without altering its history

Sep 05, 2026Difficulty 3
git bundle create <filename> <branchname>

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

Sep 06, 2026Difficulty 3
git notes show <commit>

Displays the note text attached to a specific commit.

Sep 07, 2026Difficulty 3
git fetch --dry-run

Preview remote changes without actually downloading them.

Sep 08, 2026Difficulty 3
git show-ref --heads

Show commit hashes and reference names for all local branches.

Sep 09, 2026Difficulty 2
git count-objects -v

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

Sep 10, 2026Difficulty 2
git branch --merged

List local branches fully merged into the current branch.

Sep 11, 2026Difficulty 3
git bisect stop

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

Sep 12, 2026Difficulty 1
git reflog

Show a log of all Git references