Download Scott Chacon
Transcript
42 CH APT ER 2 N G IT B A S IC S Tagging Later You can also tag commits after you’ve moved past them. Suppose your commit history looks like this: cephkc))lnappu9kjaheja -1,.351351-^20_b430_/113],b/103^`4/^/bb2Ianca^n]j_d#atlaneiajp# ]2^0_53054^`/,-`40,52`].1-_54],3_33./a21^acejjejcsnepaoqllknp ,`1.]]]^0035253`]3242_-1b33]/`20`5-21-5,kjaiknapdejc 2`1.].3-a`]43.10-12/0``35`]]^^_0`5^2,,4aIanca^n]j_d#atlaneiajp# ,^30/0`42415__3^4_/`1a-```ba`22bb30.b_^_]``a`]_kiiepbqj_pekj 024._/.2-,13/,1^``2-2a./^20^,413`4/.2.3^]``a`]pk`kbeha -22]a,_0`/b0.,3.-]_^^--1__//404`b__.-.-]op]npa`snepaoqllknp 5b_a^,.`,]a154a51`_53,^30323b-5/3.`2-]b4ql`]pa`n]gabeha 520b-2`/2`b__`a40045/_]_1^/03a3^/`00]^^__kiieppdapk`k 4]1_^_0/,b-]5_/`,,b]]abb`,33541,40..5,4]ql`]pa`na]`ia Now, suppose you forgot to tag the project at v1.2, which was at the updated rakefile commit. You can add it after the fact. To tag that commit, you specify the commit checksum (or part of it) at the end of the command: cepp]c)]r-*.5b_a^,. You can see that you’ve tagged the commit: cepp]c r,*r-*. r-*/ r-*0 r-*0)hs r-*1 cepodksr-*. p]cr-*. P]ccan6O_kpp?d]_kj8o_d]_kj<caa)i]eh*_ki: @]pa6IkjBa^5-16/.6-2.,,5),4,, ranoekj-*. _kiiep5b_a^,.`,]a154a51`_53,^30323b-5/3.`2-]b4 =qpdkn6I]cjqo?d]_kj8i_d]_kj<caa)i]eh*_ki: @]pa6Oqj=ln.3.,60/6/1.,,4),3,, ql`]pa`n]gabeha ***