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 all commits in the specified date range.
Prints a short summary of all commits excluding merge commits.
Ever needed to create a git commit with a different date? Here's a quick and easy way to do it.
Prints a list of all commits that manipulated a given string.
Prints all the branches containing a specific commit.
Prints all the branches not containing a specific commit.
Prints a short summary of all commits.
Uses a binary search algorithm and a given script to find which commit in history introduced a bug.
Uses a binary search algorithm to manually find which commit in history introduced a bug.
Updates the last commit's message without changing its contents.
Applies the changes introduced by one or more commits.
Prints all commits by the specified author.
Removes a file from the last commit without changing its message.
Creates a new commit skipping the pre-commit and commit-msg hooks.
Updates the last commit's contents without changing its message.