Re: most annoying thing in git-push

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alexey I. Froloff <raorn <at> altlinux.org> writes:
> 
> From git-fetch(1), -n option description: "By default, tags that
> point at objects that are downloaded from the remote repository
> are fetched and stored locally."
> 
> Is is possible to add such functionality to git-push, so it will
> push tags that point at objects that were uploaded to the remote
> repository?
> 

Hi,

git-fetch -n does the opposite: "This option disables this automatic tag 
following." I guess you wanted to write git-fetch -t.
git-push --tags will help you, but it's a 2 step push: one for the branches and 
one for the tags. I use .git/config to solve this:

[remote "origin"]
	url = ...
	fetch = +refs/heads/*:refs/remotes/origin/*
	push = +refs/heads/*
	push = +refs/tags/*

With these lines added git-push origin will upload all your branches and tags.
If you want to upload only some of them, you can enumerate them.


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]