Last active
June 10, 2016 15:04
-
-
Save AlexeiDarmin/fc3efc0caec95b6337deaa62e2c72211 to your computer and use it in GitHub Desktop.
Most frequently used git commands by me
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Delete local and remote branches | |
git branch -D <branchName> | |
git push origin :<branchName> | |
Push local branch to remote | |
git push origin <branchName> | |
Hard Reset | |
git fetch --all | |
git reset --hard origin/<branchName> | |
List Merge Conflict Filenames | |
git diff --name-only --diff-filter=U |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment