Rafael Espindola wrote: >>> git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*' >> This will put the remote branch heads in refs/remotes, you might want to >> put them in refs/remotes/origin instead. >> >> $ git config --add remote.origin.fetch >> '+refs/remotes/*:refs/remotes/origin/*' > > One small problem I have with this. When I do "git branch lto > origin/lto" the generated config entry says: > > [branch "lto"] > remote = origin > merge = refs/heads/lto > > and "git pull" will fail. Manually updating it to > > [branch "lto"] > remote = origin > merge = refs/remotes/lto
Because the right one should have been $ git config --add remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*' ? Paolo