Hello,
Is it possible change checkout another work tree remotely and refresh all files?
For example: git remote other checkout other-branch-x
Thanks!
--
Marcello Henrique
Associação Software Livre de Goiás (www.aslgo.org.br)
Cercomp - UFG (www.cercomp.ufg.br)
Marcello Henrique [off-list ref] wrote:
Is it possible change checkout another work tree remotely and refresh all files?
For example: git remote other checkout other-branch-x
ssh otherhost cd otherdir '&&' git checkout other-branch-x
--
Shawn.
On Mon, Sep 8, 2008 at 12:45, Shawn O. Pearce [off-list ref] wrote:
Marcello Henrique [off-list ref] wrote:
quoted
Is it possible change checkout another work tree remotely and refresh all files?
For example: git remote other checkout other-branch-x
ssh otherhost cd otherdir '&&' git checkout other-branch-x
This form is over ssh and over http?
Thank for quickly!
--
Marcello Henrique
Associação Software Livre de Goiás (www.aslgo.org.br)
Cercomp - UFG (www.cercomp.ufg.br)
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