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.
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
Prints a list of all commits that manipulated a given string.
Git, Commit · Apr 13, 2021
Prints all commits in the specified date range.
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
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
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
Learn how to effortlesly amend the last commit's message or contents using Git and fix any mistakes you might have made.
Git, Commit · May 23, 2023
Applies the changes introduced by one or more commits.
Git, Commit · Apr 13, 2021
Removes a file from the last commit without changing its message.
Git, Commit · Apr 13, 2021