From: Paolo Bonzini <bonzini@gnu.org>
To: Marcello Henrique <faraohh@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Change checkout remotely.
Date: Mon, 08 Sep 2008 17:47:19 +0200 [thread overview]
Message-ID: <48C54907.4040408@gnu.org> (raw)
In-Reply-To: <f5cc88f60809080842l34760997r4b821a79e7727d91@mail.gmail.com>
Marcello Henrique wrote:
> 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
prev parent reply other threads:[~2008-09-08 15:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-08 15:42 Change checkout remotely Marcello Henrique
2008-09-08 15:45 ` Shawn O. Pearce
2008-09-08 15:53 ` Marcello Henrique
2008-09-08 15:47 ` Paolo Bonzini [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=48C54907.4040408@gnu.org \
--to=bonzini@gnu.org \
--cc=faraohh@gmail.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).