$ git reset --hard HEAD will discard any local edits.
$ git checkout origin/master should get you back to what you originally cloned. $ git fetch origin should pull changes from infrared that you may not yet have picked up. Then the checkout command above will 'upgrade' you. Bear in mind it's a good idea to drop a tag or make a branch before doing this just it case you need to go back to where you were. $ git help tag and $ git help branch should be useful for you Dominic On 2 Jan 2013, at 18:29, JB Caruth wrote: > Can anybody help me with the git command to refresh (and overwrite) a > previous clone? > >> $ git clone git://git.infradead.org/get_iplayer.git >> fatal: destination path 'get_iplayer' already exists and is not an empty >> directory. > > If I have previously updated the web PVR via the "update software" > link it also gives an error that there are local changes to commit > before I can update. > > So how do I just pull the latest out of git and clobber anything local > whether changed or not? > > Thanks. > > _______________________________________________ > get_iplayer mailing list > [email protected] > http://lists.infradead.org/mailman/listinfo/get_iplayer _______________________________________________ get_iplayer mailing list [email protected] http://lists.infradead.org/mailman/listinfo/get_iplayer

