From: Alexander Litvinov Date: Mon, 13 Nov 2006 05:29:25 GMT Subject: Re: Getting new branches from remote repo. Message-ID: <6e1787fe0611122129l211f7bcaued9f4981225a241b@mail.gmail.com> In-Reply-To: <7v8xigar36.fsf@assigned-by-dhcp.cox.net> > After finding out $that_new_branch's name, add either > > Pull: refs/heads/$that_new_branch:refs/heads/$that_new_branch > You would still see them if you say "ls-remote" without --heads. Thanks for help, these commands solve my trouble: 1. Get remote branches by 'git ls-remote origin refs/remotes/*' 2. Fetch needed branch by adding: 'Pull: refs/remotes/origin/BRANCH:refs/heads/BRANCH' into .git/remotes/origin Is there any way to automaticly edit .git/remotes/origin before