Please consider adding a -f switch to git-clone (or something similar)
- From
- Diego Viola <diego.viola@gmail.com>
- Date
- Mar 7, 2015, 21:54 UTC
- Message-ID
- <CA+ToGPEZN7TBcYF3o5YgbayjZ8WKok-fjTPeq5nbt2vAG1wDDQ@mail.gmail.com>
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