The Git snippet collection contains a variety of short tips and tricks for all currently maintained versions of git. It includes most commonly-used commands and covers various use-cases in the form of simplified documentation, complete with multiple examples.
Pulls the latest changes from the remote tracking branch.
Git, Repository · Apr 13, 2021
Resets the local master
branch to match the one on the remote.
Git, Repository · Apr 13, 2021
Uses a binary search algorithm and a given script to find which commit in history introduced a bug.
Git, Commit · Apr 13, 2021
Uses a binary search algorithm to manually find which commit in history introduced a bug.
Git, Commit · Apr 13, 2021
Applies the changes introduced by one or more commits.
Git, Commit · Apr 13, 2021
Use the name of the current branch when pushing by default as the name of the remote branch.
Git, Configuration · Jun 30, 2021
Copies a file from another branch to the current branch.
Git, Branch · Apr 13, 2021
Displays differences between staged or unstaged changes and the last commit.
Git, Commit · Apr 13, 2021
Discards all uncommitted changes to the current branch.
Git, Branch · Apr 13, 2021