Worked like a charm. Thanks Bastien! John On Thu, Aug 12, 2010 at 9:18 AM, Bastien wrote: > John Hendy writes: > > > Now that the patch is "official", how do I conduct my next git pull since > I > > don't really want to commit my modified file in favor of the incoming > from the > > git server? > > If your patch comes from a temporary branch, just checkout the master > branch (~$ git checkout master) and pull normally with ~$ git pull. > > (This is the advantage of working in branches: you'll always be able to > pull from the master branch.) > > If your patch comes from the master branch, two cases: > > 1. you *didn't commit* your changes on your local repo. Then you need > to reset to HEAD and pull: > > ~$ git reset --hard HEAD > ~$ git pull > > 2. you *did commit* your changes on your local repo. Then you need to > reset to a specific commit (i.e. the one from last pull) and pull: > > ~$ git reset --hard > ~$ git pull > > You can get with ~$ git log. > > Playing with gitk might also help. > > http://book.git-scm.com/4_undoing_in_git_-_reset,_checkout_and_revert.html > will give more details. > > HTH, > > -- > Bastien >