Example of the Day Management

Loading...
57 days remaining
59 future examples
Dec 25, 2025Difficulty 2
git stash drop

Delete the most recent stash entry

Dec 26, 2025Difficulty 2
git log --oneline --graph

Displays condensed repository history in a graphical format.

Dec 27, 2025Difficulty 1
git tag -a <version_number>

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

Dec 28, 2025Difficulty 2
git branch --contains <commit>

List local branches that include the specified commit.

Dec 29, 2025Difficulty 4
git log -G<regexp>

Searches commit diffs for changes matching a regex pattern.

Dec 30, 2025Difficulty 3
git branch --unset-upstream

Remove the upstream tracking branch from the current branch.

Dec 31, 2025Difficulty 4
git log --merge --oneline

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

Jan 01, 2026Difficulty 3
git diff --name-only --diff-filter=U

List filenames of files with merge conflicts

Jan 02, 2026Difficulty 1
git switch -c <branchname>

Creates a new branch and switches to it.

Jan 03, 2026Difficulty 3
git apply <pathname>

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

Jan 04, 2026Difficulty 1
git switch <branchname>

Switch to the specified branch

Jan 05, 2026Difficulty 3
git describe --tags

Shows the nearest tag name reachable from the current commit.

Jan 06, 2026Difficulty 4
git name-rev <commit>

Shows a friendly reference name for a commit hash

Jan 07, 2026Difficulty 3
git describe --always --dirty

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

Jan 08, 2026Difficulty 2
git notes add -m <note-text>

Add a note to the current commit without altering its history

Jan 09, 2026Difficulty 3
git bundle create <filename> <branchname>

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

Jan 10, 2026Difficulty 3
git notes show <commit>

Displays the note text attached to a specific commit.

Jan 11, 2026Difficulty 3
git fetch --dry-run

Preview remote changes without actually downloading them.

Jan 12, 2026Difficulty 3
git show-ref --heads

Show commit hashes and reference names for all local branches.

Jan 13, 2026Difficulty 2
git count-objects -v

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

Jan 14, 2026Difficulty 2
git branch --merged

List local branches fully merged into the current branch.

Jan 15, 2026Difficulty 3
git bisect stop

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

Jan 16, 2026Difficulty 1
git reflog

Show a log of all Git references

Jan 17, 2026Difficulty 1
git fetch

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

Jan 18, 2026Difficulty 1
git checkout -b <branchname>

Create a new branch and switch to it

Jan 19, 2026Difficulty 1
git branch -m <old_branchname> <new_branchname>

Rename a branch

Jan 20, 2026Difficulty 1
git branch -v

List all branches including commit information

Jan 21, 2026Difficulty 2
git rebase <branchname>

reapply commits from the current branch onto <branchname>

Example: git rebase main
Jan 22, 2026Difficulty 2
git checkout -b <branchname1> <remote>/<branchname2>

Clone a remote branch and switch to it

Jan 23, 2026Difficulty 1
git restore --staged

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

Jan 24, 2026Difficulty 1
git checkout <branchname>

Switch to a different branch

Jan 25, 2026Difficulty 1
git branch -M <branchname>

Forcefully rename the current branch to <branchname>

Jan 26, 2026Difficulty 1
git branch <branchname>

Creates a new branch with the specified name.

Example: git branch refactor-homepage
Jan 27, 2026Difficulty 1
git merge <branchname>

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

Jan 28, 2026Difficulty 1
git rm <pathname>

Remove a file from the working directory and staging area.

Jan 29, 2026Difficulty 1
git diff <commitA> --name-only

Show the names of the changed files between the current commit and specific commit

Example: git commit f8da76c --name-only
Jan 30, 2026Difficulty 1
git add <pathname>

Stage changes for the next commit

Jan 31, 2026Difficulty 1
git rm --cached <pathname>

Remove files only from the git index

Feb 01, 2026Difficulty 1
git commit -m <message>

Commit staged changes with a message

Example: git commit -m "Fix bug"
Feb 02, 2026Difficulty 1
git clone <repo_url>

Clone a remote Git repository

Example: git clone https://github.com/facebook/react.git
Feb 03, 2026Difficulty 1
git log

Show the commit history

Feb 04, 2026Difficulty 2
git blame <pathname>

Annotate each line in `<pathname>` with the commit SHA, author, and timestamp of its last modification.

Example: git blame src/file1.txt
Feb 05, 2026Difficulty 1
git pull

Fetch and merge remote changes

Feb 06, 2026Difficulty 1
git init

Initialize a Git repository in the current directory

Feb 07, 2026Difficulty 1
git status

Show the status of the current repository

Feb 08, 2026Difficulty 1
git diff HEAD

Show uncommitted changes

Feb 09, 2026Difficulty 1
git add -A

Add all new and changed files to the staging area

Feb 10, 2026Difficulty 1
git branch

List all branches

Feb 11, 2026Difficulty 1
git branch -d <branchname>

Delete a branch

Feb 12, 2026Difficulty 1
git push

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

Feb 13, 2026Difficulty 2
git checkout HEAD <pathname>

Restore a file from the most recent commit

Feb 14, 2026Difficulty 3
git config pull.rebase false

Configures Git to merge instead of rebasing when pulling changes.

Feb 15, 2026Difficulty 3
git diff @{push}

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

Feb 16, 2026Difficulty 2
git log --all --grep=<searchterm>

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

Feb 17, 2026Difficulty 1
git log -<number>

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

Feb 18, 2026Difficulty 2
git log ..<branchname>

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

Feb 19, 2026Difficulty 2
git branch -r

Lists all remote branches in the repository.

Feb 20, 2026Difficulty 2
git stash save <message>

Stash changes with a custom message

Feb 21, 2026Difficulty 2
git stash pop

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