Skip to content

Instantly share code, notes, and snippets.

@danse
Last active December 9, 2015 17:08
Show Gist options
  • Save danse/4301165 to your computer and use it in GitHub Desktop.
Save danse/4301165 to your computer and use it in GitHub Desktop.
git reminder
push origin --delete <branchName>
git push origin --tags
merge -s recursive -Xtheirs upstream/master
reset --soft HEAD^
git rebase --ignore-date
git add --all <path>

reset a branch to its origin

git reset --hard origin/mybranch

delete remote tag

git push --delete origin tagname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment