{"thread":{"id":"15428","subject":"Change checkout remotely.","startedAt":"2008-09-08T15:42:22Z","lastAt":"2008-09-08T15:53:43Z","messageCount":4,"participants":["Marcello Henrique","Shawn O. Pearce","Paolo Bonzini"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"90093","messageId":"f5cc88f60809080842l34760997r4b821a79e7727d91@mail.gmail.com","threadId":"15428","inReplyTo":null,"subject":"Change checkout remotely.","fromName":"Marcello Henrique","fromEmail":"faraohh@gmail.com","sentAt":"2008-09-08T15:42:22Z","receivedAt":"2008-09-08T15:42:22Z","isPatch":false,"sender":{"key":"faraohh@gmail.com","avatar":null},"body":"Hello,\n\nIs it possible change checkout another work tree remotely and refresh all files?\n\nFor example: git remote other checkout other-branch-x\n\nThanks!\n--\nMarcello Henrique\nAssociação Software Livre de Goiás (www.aslgo.org.br)\nCercomp - UFG (www.cercomp.ufg.br)\n"},{"id":"90095","messageId":"20080908154539.GF10252@spearce.org","threadId":"15428","inReplyTo":"f5cc88f60809080842l34760997r4b821a79e7727d91@mail.gmail.com","subject":"Re: Change checkout remotely.","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-09-08T15:45:39Z","receivedAt":"2008-09-08T15:45:39Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Marcello Henrique <faraohh@gmail.com> wrote:\n> \n> Is it possible change checkout another work tree remotely and refresh all files?\n> \n> For example: git remote other checkout other-branch-x\n\nssh otherhost cd otherdir '&&' git checkout other-branch-x\n\n-- \nShawn.\n"},{"id":"90098","messageId":"48C54907.4040408@gnu.org","threadId":"15428","inReplyTo":"f5cc88f60809080842l34760997r4b821a79e7727d91@mail.gmail.com","subject":"Re: Change checkout remotely.","fromName":"Paolo Bonzini","fromEmail":"bonzini@gnu.org","sentAt":"2008-09-08T15:47:19Z","receivedAt":"2008-09-08T15:47:19Z","isPatch":false,"sender":{"key":"bonzini@gnu.org","avatar":"https://avatars.githubusercontent.com/u/42082?v=4"},"body":"Marcello Henrique wrote:\n> Hello,\n> \n> Is it possible change checkout another work tree remotely and refresh all files?\n> \n> For example: git remote other checkout other-branch-x\n\nYes, either\n\n   git checkout origin/other-branch\n\nor if you want to work on your own local branch, starting from the\nremote tree:\n\n   git checkout -b my-branch origin/other-branch\n\nand \"git pull\" (or \"git pull --rebase\") when you want to synchronize\nwith upstream.\n\nPaolo\n"},{"id":"90097","messageId":"f5cc88f60809080853p43f723ffi3ea4bdc826e168f4@mail.gmail.com","threadId":"15428","inReplyTo":"20080908154539.GF10252@spearce.org","subject":"Re: Change checkout remotely.","fromName":"Marcello Henrique","fromEmail":"faraohh@gmail.com","sentAt":"2008-09-08T15:53:43Z","receivedAt":"2008-09-08T15:53:43Z","isPatch":false,"sender":{"key":"faraohh@gmail.com","avatar":null},"body":"On Mon, Sep 8, 2008 at 12:45, Shawn O. Pearce <spearce@spearce.org> wrote:\n> Marcello Henrique <faraohh@gmail.com> wrote:\n>>\n>> Is it possible change checkout another work tree remotely and refresh all files?\n>>\n>> For example: git remote other checkout other-branch-x\n>\n> ssh otherhost cd otherdir '&&' git checkout other-branch-x\n\nThis form is over ssh and over http?\n\nThank for quickly!\n-- \nMarcello Henrique\nAssociação Software Livre de Goiás (www.aslgo.org.br)\nCercomp - UFG (www.cercomp.ufg.br)\n"}]}