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
Increase your productivity by creating aliases for many common git operations.
Git, Configuration · Jun 12, 2021
Learn how to filter branches based on whether they contain a specific commit or not.
Git, Branch · May 25, 2023
Ever wanted to commit as someone else? Maybe change the author of an existing commit? Here's how.
Git, Commit · May 24, 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
Prints a list of all commits that manipulated a given string.
Git, Commit · Apr 13, 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
Prints a visual graph of all commits and branches in the repository.
Git, Repository · Apr 13, 2021
Prints all commits in the specified date range.
Git, Repository · Apr 13, 2021