On Wed, Jan 02, 2013 at 06:29:38PM +0000, 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 you really don't care about the local changes, you can just blow away the clone and start again: $ rm -rf ./get_iplayer $ git clone git://git.infradead.org/get_iplayer.git > 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? To reset the local changes and then update the local clone: $ cd get_iplayer $ git add . $ git reset --hard $ git pull --rebase > > Thanks. > > _______________________________________________ > get_iplayer mailing list > [email protected] > http://lists.infradead.org/mailman/listinfo/get_iplayer > -- Jonathan Wiltshire [email protected] Debian Developer http://people.debian.org/~jmw 4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC 74C3 5394 479D D352 4C51 <directhex> i have six years of solaris sysadmin experience, from 8->10. i am well qualified to say it is made from bonghits layered on top of bonghits _______________________________________________ get_iplayer mailing list [email protected] http://lists.infradead.org/mailman/listinfo/get_iplayer

