View branches sorted by date
Prints a list of all local branches sorted by date.
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 a list of all local branches sorted by date.
Learn how to filter branches based on whether they contain a specific commit or not.
Prints a list of all merged local branches.
Learn how to view your "undo" history using git reflog and reset your repository to a previous state.
Deletes all local merged branches.
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.
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.
Forces an update of the remote branch after rewriting the history locally.
Learn how to push and pull changes between local and remote repositories.
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.
Moves local commits from the master
branch to a new branch.
Deletes all detached branches.
Manually or automatically find which commit in history introduced a bug using.
Resets the local master
branch to match the one on the remote.
Deletes a remote branch.
Performs an interactive rebase.
Prints the current status of the working tree.
Applies the changes introduced by one or more commits.
Use the name of the current branch when pushing by default as the name of the remote branch.
Prints the current branch name.
Copies a file from another branch to the current branch.