[vox-tech] git tag?

Thomas Johnston trjohnston at ucdavis.edu
Sat Nov 6 00:34:11 PDT 2010


Yes, any changes to files that git is currently tracking will be
"committed" if you enter the command:
git commit -a

If you then follow the commit with the: git tag .... I believe that
all files associated with the last commit will be tagged with the same
(in this case) v2.5 tag. I think you should be able to see this if you
do a:
git log --oneline --decorate

If there are more seasoned git users out there who confirm this for
me, that would be great.

thomas



On Fri, Nov 5, 2010 at 11:49 PM, Brian Lavender <brian at brie.com> wrote:
> On Fri, Nov 05, 2010 at 02:16:16PM -0500, Chanoch (Ken) Bloom wrote:
>> On Fri, 2010-11-05 at 11:34 -0700, Brian Lavender wrote:
>> > How do you tag a group of files with git?
>>
>> What do you mean by tag a group of files?
>> You can tag a revision -- that is, give it a human-readable name using
>> the git tag command.
>
> Some of my files have three changes, some have two, so I want to give
> a label to the current state of the files.
>
> Does this command give all files the same commit id?
>
> git commit -a
>
> And then do the following?
>
> git tag v2.5 1b2e1d63ff
>
> brian
> --
> Brian Lavender
> http://www.brie.com/brian/
>
> "Program testing can be used to show the presence of bugs, but never to
> show their absence!"
>
> Professor Edsger Dijkstra
> 1972 Turing award recipient
> _______________________________________________
> vox-tech mailing list
> vox-tech at lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech
>


More information about the vox-tech mailing list