Document Control

  • 1/27/2022: Renamed document title
  • 1/28/2022: Added table of contents, document control

Purpose

These are quick notes to jog memory1.

It is a living document in that will expand or modify as needed.

This is a small reference about Git.

Official docs available here, https://git-scm.com/doc

Remote repo tags

Following items Use the following to explore which tags are available from a remote repository.

Command

git ls-remote --tags [url repo.git]

Example

git ls-remote --tags https://gitlab.com/jneufferjr/local_tools.git/

c54e66c61b440247316d6b8e6c61f13d471e2732	refs/tags/0.7.0
53bffcf276e63aa3002decf60de265bf8618e4be	refs/tags/0.8.0
c24cc98c893ae6c94074999d38057f6f0da887ec	refs/tags/0.9.0
67f39deb131cf0fa532c5e7940755c12d4491c1d	refs/tags/1.0.0
219f11ff5ea34a57df5c04432f4b9418b6d88c5d	refs/tags/1.0.1
417496be9eeab52871cbee82d12eaa1c3b4f6a4d	refs/tags/1.0.1^{}
e7d973dd49e703a14f4038e45dfe06eacd998c5b	refs/tags/1.1.0
(...omit brevity...)

Local repo tags

View a list of tags already created.

Command

git tag

Or

git tag -l [MATCH CHARACTERS]

Example

$ git tag

0.7.0
0.8.0
0.9.0
1.0.0
1.0.1
1.1.0
(...omit brevity...)

Or
Where 1.1.0 below is to narrow the result scope.

$ git tag -l 1.1.0

1.1.0

Setting a tag (creating)

At some point, the code is progressed to a milestone of sorts (alpha, beta, or release). This is the usual time to set a tag on that represents the state of the code at a point of time.

$ git tag -a 1.0.0 -m "Release such and such"
$ git push --tags

Footnotes and Sources

  1. To cause one to remember something. jog memory. (n.d.) Farlex Dictionary of Idioms. (2015). Retrieved January 27 2022 from https://idioms.thefreedictionary.com/jog+memory[]

Last modified: 11/26/2022

Comments

Write a Reply or Comment