Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

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