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.
Prints a list of all local branches sorted by date.
Git, Repository · Apr 13, 2021
Learn how to filter branches based on whether they contain a specific commit or not.
Git, Branch · May 25, 2023
Learn how to view your "undo" history using git reflog and reset your repository to a previous state.
Git, Repository · May 21, 2023
Learn about Git's fast-forward mode works and its benefits when mergin branches, so you can decide if it's a good fit for you and your team.
Git, Branch · Jul 15, 2021
Learn how to merge a branch in Git with or without creating a merge commit, depending on your team's workflow.
Git, Repository · May 26, 2023
Prints a summary of changes between two given commits.
Git, Repository · Apr 13, 2021
Forces an update of the remote branch after rewriting the history locally.
Git, Branch · Apr 13, 2021
Learn how to push and pull changes between local and remote repositories.
Git, Repository · Jun 1, 2023
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
Moves local commits from the master
branch to a new branch.
Git, Branch · Apr 13, 2021