home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] "git fetch" versus "git fetch --tags"?

  • Subject: Re: [OCLUG-Tech] "git fetch" versus "git fetch --tags"?
  • From: Rob Echlin <rob [ at ] echlin [ dot ] ca>
  • Date: Wed, 1 Jul 2015 21:16:51 +0000 (UTC)
If I remember correctly, "git push" has similar stuff.You need to run "git push", then "git push --tags" to push your tags.I don't think you will get the delta pushed with the --tags version.So I think it may be similar with fetch.
All my very best,Rob 
 --
Rob Echlin, B. Eng.
613-266-8311 -  Ottawa, ON
http://talksoftware.wordpress.com  - http://picasaweb.google.com/coderoller



 


     On Sunday, June 28, 2015 1:48 PM, Robert P. J. Day <rpjday [ at ] crashcourse [ dot ] ca> wrote:
   
 

 On Sun, 28 Jun 2015, Aidan Van Dyk wrote:

> A normal "git fetch" will fetch tags that point to commits being
> fetched.  So if you are fetching new histroy that has a tag pointing
> to it, that tag will be fetched with it.  But by default, fetch only
> pulls "refs/heads/*" (branch namespace).  Adding a "--tags" will
> make it fetch "refs/tags/*" too. This matters if tags are pushed to
> the remote that point to "historic" commits (ones you already have
> in your local repo).

  ah, i figured it was something along those lines, thanks.

rday

-- 

========================================================================
Robert P. J. Day                                Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                      http://twitter.com/rpjday
LinkedIn:                              http://ca.linkedin.com/in/rpjday
========================================================================
_______________________________________________
Linux mailing list
Linux [ at ] lists [ dot ] oclug [ dot ] on [ dot ] ca
http://oclug.on.ca/mailman/listinfo/linux