Example of the Day Management

Loading...
35 days remaining
37 future examples
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.