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.
Disables the default fast forwarding on merge commits.
Git, Configuration · Jul 3, 2021
Forces an update of the remote branch after rewriting the history locally.
Git, Branch · Apr 13, 2021
Pushes the current branch's changes to the remote.
Git, Repository · Apr 13, 2021
Did you make a mistake but haven't pushed your changes yet? Learn how to rewind back to a specific commit in Git.
Git, Branch · May 26, 2023
Learn the simple way to undo a commit in Git without rewriting history.
Git, Commit · May 27, 2023
Learn how to view a short summary of your Git commits using git log.
Git, Repository · May 23, 2023
Learn how to eliminate the annoyance of copying dollar signs ($) along with terminal commands from the web with a simple bash alias.
Git, Configuration · Mar 5, 2023
Effortlessly create upstream branches on push by enabling a simple git config setting.
Git, Configuration · May 21, 2023
Moves local commits from the master
branch to a new branch.
Git, Branch · Apr 13, 2021
Ever needed to create a git commit with a different date? Here's a quick and easy way to do it.
Git, Commit · Jun 12, 2021
Pulls the latest changes from the remote tracking branch.
Git, Repository · Apr 13, 2021