How do I clone into a non-empty directory?

前端 未结 16 1496
庸人自扰
庸人自扰 2020-11-22 06:20

I have directory A with files matching directory B. Directory A may have other needed files. Directory B is a git repo.

I want to clone directory B to directory A bu

16条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-22 06:36

    This worked for me:

    cd existing_folder
    git init
    git remote add origin path_to_your_repo.git
    git add .
    git commit
    git push -u origin master
    

提交回复
热议问题