Re: Change checkout remotely.
- From
Paolo Bonzini <bonzini@gnu.org>
- Date
- Sep 8, 2008, 15:47 UTC
- Message-ID
- <48C54907.4040408@gnu.org>
- In-Reply-To
- <f5cc88f60809080842l34760997r4b821a79e7727d91@mail.gmail.com>
Marcello Henrique wrote:
Show 5 quoted lines
> Hello, > > Is it possible change checkout another work tree remotely and refresh all files? > > For example: git remote other checkout other-branch-x
Yes, either
git checkout origin/other-branch
or if you want to work on your own local branch, starting from the remote tree:
git checkout -b my-branch origin/other-branch
and "git pull" (or "git pull --rebase") when you want to synchronize with upstream.
Paolo