Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleRename a branch
git branch -m <oldname> <newname>
Code Block
titleDelete Remove a branch
git branch -D master
Code Block
titleRemove old (stale) remote branch references
git remote prune <remote_repository_alias>
Code Block
titleCreate an annotated tag
git tag -a <tag_name> <sha1> -m"<tag_message>"
Code Block
titleRemove a tag
git tag -d <tag_name>
Code Block
titlePush a tag
git push <remote_repository_alias> <tag_name>
Code Block
titleRemove a remote tag
git push <remote_repository_alias> :refs/tags/<tag_name>

Converting a Mercurial repository to a Git repository

...