Re: Easiest way to clone over an existing directory?

2016-06-15 Thread brian m. carlson
On Wed, Jun 15, 2016 at 08:51:34AM -0700, Josh Triplett wrote: > Currently, every time I set up a new system, I run the following: > > git clone $MY_HOMEDIR > mv home/.git . > rm -r home > git checkout -f > > This seems like an odd dance to go through. But I can't just git clone > into ~

Easiest way to clone over an existing directory?

2016-06-15 Thread Josh Triplett
Currently, every time I set up a new system, I run the following: git clone $MY_HOMEDIR mv home/.git . rm -r home git checkout -f This seems like an odd dance to go through. But I can't just git clone into ~ directly, because git clone will not clone into an existing non-empty directory. (I