Use the bfg tool to strip out large, orphaned files from a git repo
Use the bfg tool to strip out secrets from commits
Checkout a tag to a local branch - also, find the latest tag to checkout automatically
How to use git cherry-pick
Create a tag locally and push
Delete a tag either from the remote only, or locally and (force) push
Perform a diff (like in git log -p
), but only for a single file
Extracts the authors of all commits in a repo and the number of commits they made
Find large files in a git repo
Useful for force pushing / updating a tag so that you can update the tag atomically
Get the full SHA from a short SHA
Amends the most recent commit with a new author and timestamp
Amends the most recent commit by adding newly staged changes
Amends the most recent commit's message
Commits empty commit (useful for triggering CI builds)
Counts committers in the last 90 days
Finds the best common ancestor(s) between two commits (you can use it to compare commits at the tip of comparing branches)
Reorders the last 2 commits
Shows commits that are common for branches being compared
Shows files that have been changed (added, modified, etc.) in the last x commits
Resets the last x commits and squashes them into one commit
Using a git plugin to find when a commit was merged
Different examples with git log
and git show
Search through commit messages, example to find all commit messages that include a jira ticket number
What branches contain a particular commit hash