[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git
Subject:    Re: Tracking a remote branch in git
From:       Tim Mazid <timmazid () hotmail ! com>
Date:       2009-10-31 21:01:56
Message-ID: 26123156.post () talk ! nabble ! com
[Download RAW message or body]



Sips wrote:
> 
> Then I created a branch in the repository on the removable drive W and
> named it newfeature. The question is: How can I work with this branch on
> the local repository as well? I mean, I need the same 'relationship'
> between branches as in case of the master branch.
> 
> ...
> 
> I mean, I am able to track the master branch from the remote repository.
> Why can't I track some other branch as well? Any ideas what I'm doing
> wrong?
> 

Have you tried doing 'git fetch'? That should get and track all new remote
branches automatically.

Once you have a remote branch, if you've deleted the local branch, you can
just do 'git branch LOCAL REMOTE', and that should set up a tracking branch.

If this doesn't work for you, check your git version with 'git --version'.
It works for v1.6.5.2.

Good luck,
Tim.
-- 
View this message in context: \
http://old.nabble.com/Tracking-a-remote-branch-in-git-tp26119537p26123156.html Sent \
from the git mailing list archive at Nabble.com.

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic