How can I associate local unversioned code to git remote repository?

前端 未结 4 979
别跟我提以往
别跟我提以往 2020-12-31 00:24

I need to associate a clean unversioned code to an existing git remote repository.

I explain better my situation. My project is moved from svn to git. I have a svn

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-31 01:07

    Would the following work? I tried it on one of my projects and it worked.

    1) Clone the git repository to a location different from the directory that contains the unversioned code.

    2) Copy the .git folder from the directory created as a result of (1) to the directory that contains the unversioned code.

    This effectively achieved for me what Adam Dymitruk steps in his answer above.

提交回复
热议问题