View Git branches sorted by date
Do you want to see a list of all local branches sorted by date? Here's a simple command to help you with that.
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.
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.
Looking for a way to list all merged branches in your Git repository? Look no further.
Learn how to filter branches based on whether they contain a specific commit or not.
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.
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.
Prints a list of all local branches.
Prints a summary of changes between two given commits.
Learn how to push and pull changes between local and remote repositories.
Learn how to quickly and easily reset your local master
branch to match the one on the remote.
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.
Manually or automatically find which commit in history introduced a bug using.
Learn how to apply changes introduced by one or more commits to your current branch (cherry-picking).
If you need to copy a file from another branch to the current branch, here's an easy way to do it.
Performs an interactive rebase.
Learn how to view the current status of the working tree in Git.
Made a mistake with your branch name? Learn how to rename a local or remote Git branch.
Have you accidentally deleted a file? Or maybe you need to restore a file that was deleted? Here's how Git can help you.
Use the name of the current branch when pushing by default as the name of the remote branch.
Prints the current branch name.