From: Tim Mazid <timmazid@hotmail.com>
To: git@vger.kernel.org
Subject: Re: Tracking a remote branch in git
Date: Thu, 29 Oct 2009 17:26:20 -0700 (PDT) [thread overview]
Message-ID: <26123156.post@talk.nabble.com> (raw)
In-Reply-To: <26119537.post@talk.nabble.com>
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://www.nabble.com/Tracking-a-remote-branch-in-git-tp26119537p26123156.html
Sent from the git mailing list archive at Nabble.com.
prev parent reply other threads:[~2009-10-30 0:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-29 19:45 Tracking a remote branch in git Sips
2009-10-30 0:26 ` Tim Mazid [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=26123156.post@talk.nabble.com \
--to=timmazid@hotmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).