Over the last few years working with Git source control system, I found a number of useful git commands which helped me a lot to solve non-trivial tasks related to Git source control system. I don't use this tips every day, usually it's only one or two time I used them in total, but knowing those git commands is very important to master git and became expert with git.
Most useful git commands
- How to move git repository to different location with all history
- How to change last commit message in git
- How to undo last commit in git
- How to revert file to previous commit version in Git
- How to merge in Git without auto-commit
- How to find list of files different between two branches in Git
- How to undo uncommitted changes in Git
- How to remove Git branch locally and remotely
- How to create Git branch from tag
- How to validate changes before commit in Git
- How to rename local Git branch