Re: branch.pu.forcefetch
- From
Junio C Hamano <junkio@cox.net>
- Date
- Dec 27, 2006, 21:14 UTC
- Message-ID
- <7vfyb159dn.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <1167251519.2247.10.camel@dv>
Pavel Roskin <proski@gnu.org> writes:
Show 5 quoted lines
> For example, I clone the git repository anew, and I try to update it by > git-fetch a few days later. I get an error: > > * refs/remotes/origin/pu: not updating to non-fast forward branch 'pu' > of git://www.kernel.org/pub/scm/git/git
Perhaps you would want something like this?
if you are using separate remote layout:
[remote "origin"] fetch = +refs/heads/pu:refs/remotes/origin/pu fetch = refs/heads/*:refs/remotes/origin/*
Or traditional layout:
[remote "origin"] fetch = refs/heads/master:refs/heads/origin fetch = refs/heads/next:refs/heads/next fetch = refs/heads/maint:refs/heads/maint fetch = +refs/heads/pu:refs/remotes/pu