{"thread":{"id":"9304","subject":"Merging into a current branch","startedAt":"2007-07-30T05:40:36Z","lastAt":"2007-07-30T05:48:37Z","messageCount":2,"participants":["Geoff Russell","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"49061","messageId":"93c3eada0707292240qe92aa57s5c5152e078693a53@mail.gmail.com","threadId":"9304","inReplyTo":null,"subject":"Merging into a current branch","fromName":"Geoff Russell","fromEmail":"geoffrey.russell@gmail.com","sentAt":"2007-07-30T05:40:36Z","receivedAt":"2007-07-30T05:40:36Z","isPatch":false,"sender":{"key":"geoffrey.russell@gmail.com","avatar":"https://gravatar.com/avatar/c30f497ccfa6bf06d86f30bd2ba092a2dd124c61c6bc902f7cb5c3f6486947de?d=mp&s=160"},"body":"Dear gits,\n\nIs there any reason why\n\ngit fetch origin branchX:branchX\n\nfails if I am on branchX?   All I want to do is fast forward it.\n\nCheers,\nGeoff.\n"},{"id":"49062","messageId":"20070730054837.GS20052@spearce.org","threadId":"9304","inReplyTo":"93c3eada0707292240qe92aa57s5c5152e078693a53@mail.gmail.com","subject":"Re: Merging into a current branch","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-07-30T05:48:37Z","receivedAt":"2007-07-30T05:48:37Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Geoff Russell <geoffrey.russell@gmail.com> wrote:\n> Is there any reason why\n> \n> git fetch origin branchX:branchX\n> \n> fails if I am on branchX?   All I want to do is fast forward it.\n\nYes.\n\nA fetch will *only* update the branch.  If the branch is your current\nbranch it won't update the working directory.  This safety check\nis to prevent the branch from updating, but the working directory\nstaying unchanged, and the resulting git-status output looking like\nyou just undid all of the recent work done on branchX of origin.\n\nTry git-pull instead:\n\n  git pull origin branchX\n\n\n-- \nShawn.\n"}]}