0

Trying to clone from a forked project to my personal system and git bash gives me the error.

me : $git clone https...
git: fatal: working tree 'C:/.' already exists

Tried many things like creating a new folder and initializing git there and here is what I got

git: Reinitializing existing git repository in 'C:/.(same old directory)' 
LeGEC
  • 46,477
  • 5
  • 57
  • 104
  • 1
    Possible duplicate of https://stackoverflow.com/questions/34224729/exception-working-tree-already-exists-while-cloning-git-repo-in-pre-push-hook – Martin Jun 24 '22 at 06:09
  • 1
    referring to the question pointed at by @Martin : what do you see if your run `echo $GIT_DIR` an `echo $GIT_WORK_TREE` in your `git-bash` session ? – LeGEC Jun 24 '22 at 06:52
  • Thanks, was able to sort it out by opening git bash in the new directory – Batmanbummer Jun 25 '22 at 09:50

0 Answers0