A guide to Git stashing
Learn all you need to know about Git stashing, including how to stash changes, apply, list, and delete stashes.
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 all you need to know about Git stashing, including how to stash changes, apply, list, and delete stashes.
Do you want to see a list of all local branches sorted by date? Here's a simple command to help you with that.
Having trouble deleting branches in Git? Here's a guide to help you delete local, remote, detached, and merged branches.
View all commits in a specific date range using git log
.
Looking for a way to list all merged branches in your Git repository? Look no further.
Increase your productivity by creating aliases for many common git operations.
Learn how to filter branches based on whether they contain a specific commit or not.
Completely purges a file from history.
Ever wanted to commit as someone else? Maybe change the author of an existing commit? Here's how.
Learn how to view your "undo" history using git reflog and reset your repository to a previous state.
Learn about Git's fast-forward mode and its benefits when merging branches, so you can decide if it's a good fit for you and your team.
Did you accidentally commit to master
instead of a feature branch? Here's how you can move those commits to a new branch.
Prints a list of all commits that manipulated a given string.
Learn how to force update a remote branch after rewriting the Git history locally.
Learn how to merge a branch in Git with or without creating a merge commit, depending on your team's workflow.
Have you ever made a commit only to realize that a file should not have been included? Let's see how you can fix this!
Git defaults to fast-forward merging when possible. But, what if you want to disable it by default? Let's see how you can do that.
Prints a list of all local branches.
Prints a summary of changes between two given commits.
Prints a visual graph of all commits and branches in the repository.
Prints a list of lost files and commits.
Learn how to view or change the URL of the remote repository in Git.
If you want your team to follow a common format for commit messages, you can set up a commit message template to make it easier.
Did you set up a lot of Git aliases and forgot what they are? List them all with this command.