Would this work for you: git checkout .
On Wed, Feb 23, 2011 at 2:41 PM, Konstantin Khomoutov < flatw...@users.sourceforge.net> wrote: > On Wed, Feb 23, 2011 at 12:22:50PM -0800, Mark Liversedge wrote: > > > If this is easy peasy then my apologies. is it possible to reset a > > tracking branch to its origin without affecting other local branches? > > > > i.e. > > $ git checkout mybranch > > $ git reset --hard origin mybranch > I assume you really meant > $ git reset --hard origin/mybranch > did you? > > If so, your sequence would only reset "mybranch" and only it. > git-reset is incapable of resetting anything other than HEAD. > > -- > 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. > > -- Anas Mughal -- 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.