Find branches containing a specific Git commit
Learn how to filter branches based on whether they contain a specific commit or not.
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.
Ever wanted to commit as someone else? Maybe change the author of an existing commit? Here's how.
Prints a list of all commits that manipulated a given string.
Prints all commits in the specified date range.
Did you make a mistake but haven't pushed your changes yet? Learn how to rewind back to a specific commit in Git.
Learn the simple way to undo a commit in Git without rewriting history.
Learn how to view a short summary of your Git commits using git log.
Prints all commits by the specified author.
Ever needed to create a git commit with a different date? Here's a quick and easy way to do it.
Manually or automatically find which commit in history introduced a bug using.
Learn how to effortlessly amend the last commit's message or contents using Git and fix any mistakes you might have made.
Prints the last commit.
Applies the changes introduced by one or more commits.
Removes a file from the last commit without changing its message.
Displays differences between staged or unstaged changes and the last commit.
Adds files to the staging area.
Removes files from the staging area.
Creates a new commit skipping the pre-commit and commit-msg hooks.
Creates a fixup commit that can be autosquashed in the next rebase.
Creates a new commit containing the staged changes.
Creates an empty commit.