Skip to content

Instantly share code, notes, and snippets.

@edivandecastro
Last active November 7, 2017 12:48
Show Gist options
  • Save edivandecastro/b9e5e669d50ff80c6e0a91d114837303 to your computer and use it in GitHub Desktop.
Save edivandecastro/b9e5e669d50ff80c6e0a91d114837303 to your computer and use it in GitHub Desktop.
# Alter repository remote
git remote set-url origin [email protected]:user/your_repository.git
# Delete the last commit
$ git reset HEAD^ --hard
$ git push origin -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment