{"thread":{"id":"3129","subject":"git pull on a branch semantics","startedAt":"2006-01-22T20:58:51Z","lastAt":"2006-01-24T15:37:03Z","messageCount":3,"participants":["Luben Tuikov","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"15048","messageId":"20060122205852.255.qmail@web31812.mail.mud.yahoo.com","threadId":"3129","inReplyTo":null,"subject":"git pull on a branch semantics","fromName":"Luben Tuikov","fromEmail":"ltuikov@yahoo.com","sentAt":"2006-01-22T20:58:51Z","receivedAt":"2006-01-22T20:58:51Z","isPatch":false,"sender":{"key":"ltuikov@yahoo.com","avatar":null},"body":"Hi,\n\npwd is a git repo; current branch is A; there's a few\nbranches in this git repo.\nIn .git/remotes/ I've a file name \"projectC\", which looks like:\n\nURL:<url>\nPull:projectC:projectC\nPush:projectC:projectC\n\nThat is both here and remotely I've projectC being a branch\nhere and remotely.\n\nI'd like to pull changes to projectC only, from the remote projectC to the local projectC, but my\ncurrent branch is A.\n\nI blissfully do:\n\ngit pull projectC\n\ngit correctly tells me that the heads are the same in\nbranchC here and remote, but it then goes ahead to merge\nprojectC in the current branch A (project A) since they\nhave a common ancestor.\n\nBut because of the \"Pull\" line in .git/remotes/projectC\nwhat the intention was is to pull from projectC remotely\nand merge any new changes in projectC locally, and only\nin projectC (irrespective of what the current branch\nis (in the pwd)).\n\nIs this behavior a bug or is this a \"feature\"?\n\nThanks,\n   Luben\n"},{"id":"15049","messageId":"7v7j8sc6wy.fsf@assigned-by-dhcp.cox.net","threadId":"3129","inReplyTo":"20060122205852.255.qmail@web31812.mail.mud.yahoo.com","subject":"Re: git pull on a branch semantics","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-01-22T21:02:53Z","receivedAt":"2006-01-22T21:02:53Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Luben Tuikov <ltuikov@yahoo.com> writes:\n\n> URL:<url>\n> Pull:projectC:projectC\n> Push:projectC:projectC\n>\n> That is both here and remotely I've projectC being a branch\n> here and remotely.\n>\n> I'd like to pull changes to projectC only, from the remote projectC to the local projectC, but my\n> current branch is A.\n>\n> I blissfully do:\n>\n> git pull projectC\n\nYou wanted to \"git fetch\", not \"git pull\" which is \"fetch\nfollowed by merge into the current branch\".\n"},{"id":"15085","messageId":"20060124153703.53338.qmail@web31804.mail.mud.yahoo.com","threadId":"3129","inReplyTo":"7v7j8sc6wy.fsf@assigned-by-dhcp.cox.net","subject":"Re: git pull on a branch semantics","fromName":"Luben Tuikov","fromEmail":"ltuikov@yahoo.com","sentAt":"2006-01-24T15:37:03Z","receivedAt":"2006-01-24T15:37:03Z","isPatch":false,"sender":{"key":"ltuikov@yahoo.com","avatar":null},"body":"--- Junio C Hamano <junkio@cox.net> wrote:\n> You wanted to \"git fetch\", not \"git pull\" which is \"fetch\n> followed by merge into the current branch\".\n\nAh, ok, thanks Junio.\n\n   Luben\n"}]}