Change checkout remotely.

4 messages, 3 authors, 2016-06-15 · open the first message on its own page

Change checkout remotely.

From: Marcello Henrique <hidden>
Date: 2016-06-15 22:45:19

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)

Re: Change checkout remotely.

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:45:19

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.

Re: Change checkout remotely.

From: Marcello Henrique <hidden>
Date: 2016-06-15 22:45:19

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)

Re: Change checkout remotely.

From: Paolo Bonzini <hidden>
Date: 2016-06-15 22:45:19

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help