I have a local repo and a remote repo, something, both contain the branch develop.
Before I do a git fetch git rev-parse develop -> SHA1 git rev-parse something/develop -> SHA1 $git checkout master $git fetch something $git rev-parse develop SHA1 $git rev-parse something/develop SHA2 $git status Your branch is behind by x commits.... Perfect, just as I expected. But what if I don't want to do a git fetch something The reason for that is that I would be fetching a whole lot more than I need. The remote repo has several other branches that I have no need for. I would like to do something like git fetch something but only for one branch. If I do git fetch something develop, it ends up in FETCH_HEAD, if I do git fetch something develop:develop you get: $git checkout master $git fetch something develop:develop $git rev-parse develop SHA2 $git rev-parse something/develop SHA1 $git status Your branch is ahead by x commits.... So is there a way to update the SHA in something/develop? I want to use this in a script, comparing the local branch and remote branch. -- Peter van der Does GPG key: CB317D6E IRC: Ganseki on irc.freenode.net Twitter: @petervanderdoes -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To post to this group, send email to git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.