Force git to install to a folder already occupied -


how force git stop complaining folder want clone full of other stuff?

i've looked online , there no info.

you can do, bit dirty, works.

firstly git clone new (temporary) directory. once clone finished, move .git directory temporary directory to existing directory want clone into. finally, delete temporary directory cloned in to. may have git reset clear working tree, should it.

i use pattern lot because @ work use svn our primary source control, use git manage work-in-progress. after checkout project svn use above steps copy personal git repo inside, , works dandily.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -