public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
* Please consider adding a -f switch to git-clone (or something similar)
@ 2015-03-07 21:54 Diego Viola
  2015-03-07 22:26 ` Andreas Schwab
  0 siblings, 1 reply; 7+ messages in thread
From: Diego Viola @ 2015-03-07 21:54 UTC (permalink / raw)
  To: git

Hello,

I was thinking about creating a new repository in my home dir so that I could
keep my dot files in it.

However, I found that I can't do a `git clone url:user/repo.git .` in a
non-empty directory.

Is there a possibility of implementing a -f switch to git-clone so that when I
use that, git would still clone the repo in the non-empty directory and keep the
untracked files untracked/unstaged? (just as if I copied files to the git repo).

I know I could git-init in a empty directory and then copy the .git dir to the
non-empty directory as a workaround, but I like the idea of cloning better.

My C skills aren't that great or I would have sent a patch already.

Thanks,

Diego

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-03-08 18:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-07 21:54 Please consider adding a -f switch to git-clone (or something similar) Diego Viola
2015-03-07 22:26 ` Andreas Schwab
2015-03-07 22:53   ` brian m. carlson
2015-03-08  0:02   ` Diego Viola
2015-03-08  1:53     ` Diego Viola
2015-03-08  2:32       ` Kyle J. McKay
2015-03-08 18:27         ` Diego Viola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox