Skip to content

Instantly share code, notes, and snippets.

@AlexeiDarmin
Last active June 10, 2016 15:04
Show Gist options
  • Save AlexeiDarmin/fc3efc0caec95b6337deaa62e2c72211 to your computer and use it in GitHub Desktop.
Save AlexeiDarmin/fc3efc0caec95b6337deaa62e2c72211 to your computer and use it in GitHub Desktop.
Most frequently used git commands by me
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