Skip to content

Instantly share code, notes, and snippets.

@sazameki
Created September 12, 2009 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sazameki/185812 to your computer and use it in GitHub Desktop.
Save sazameki/185812 to your computer and use it in GitHub Desktop.
Git commands
# ひとつ前のコミットを取り消す
git reset --soft HEAD^
# 直前のコミットに新しい変更点を追加する。
git commit --amend
git push --force
# タグを取り除く
git tag -d TAGNAME
git push origin :refs/tags/TAGNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment