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