Git Commands

From RathKnowledge
Jump to navigation Jump to search

This page is a stub; you can help Rathlin by expanding it.


Creating New Repositories[edit]

Tagging[edit]

to see what tags are already in place[edit]

To ...

  1. on your local machine
  2. navigate to the correct 'base' directory (folder)
  3. issue the command

git tag This will show ...

  1. for (somewhat) more information, issue the command

git tag -n


git tag
lists any and all tags in your repo - but just by tag name
git tag -l
lists any and all tags in your repo - but just by tag name
git tag -n
lists any and all tags in your repo - includes tag comment/description
git show <<tag name>>
shows details of the specific tag


to create a new tag[edit]

Two types - "lightweight" and "annotated". By preference use "annotated" unless otherwise needed.

To create an annotated tag :

git tag -a <<tag name>> -m "<<tag comment / description>>"

Example :

$ git tag -a v1.4 -m "my version 1.4"

Also remember to "push" the tags back to the remote repository :

git push --tags

to delete (remove) a tag[edit]

See Also[edit]