Skip to content

Instantly share code, notes, and snippets.

@wildeng
Last active July 20, 2019 08:37
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 wildeng/eb3ab92a8db8ae5fb93deb135ae1c7b4 to your computer and use it in GitHub Desktop.
Save wildeng/eb3ab92a8db8ae5fb93deb135ae1c7b4 to your computer and use it in GitHub Desktop.
Adding a tag
# Adding a tag to our commit
git tag -a v0.1 -m "a nice commit"
# looking for the created files we see that one more file
# has been created
find .git/objects -type f
.git/objects/51/e1acfa6ecdb46d6c9d4ad13e82b5cab90d5f3f
.git/objects/51/dcfd9bba09650f50ccad8dde3ad5fe8ba68ad2
.git/objects/53/8d4c75373bb8ebb9af381c4e8287b6f0819533
# new folder and new file created
.git/objects/11/85637c960727f803e5229393839629479c7b8d
# content of the TAG object
git cat-file -p 1185637c960727f803e5229393839629479c7b8d
object 51dcfd9bba09650f50ccad8dde3ad5fe8ba68ad2
type commit
tag v0.1
tagger wildeng <wildeng@myemail.com> 1563610234 +0100
a nice commit
a nice tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment