“fatal: Not a git repository (or any of the parent directories)” from git status

后端 未结 13 2252
深忆病人
深忆病人 2020-12-04 14:54

This command works to get the files and compile them:

git clone a-valid-git-url

for example:

git clone git://cfdem.git.sour         


        
13条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 15:30

    If Existing Project Solution is planned to move on TSF in VS Code:

    open Terminal and run following commands:

    1. Initialize git in that folder (root Directory)

      git init

    2. Add Git

      git add .

    3. Link your TSf/Git to that Project - {url} replace with your git address

      git remote add origin {url}

    4. Commit those Changes:

      git commit -m "initial commit"

    5. Push - I pushed code as version1 you can use any name for your branch

      git push origin HEAD:Version1

提交回复
热议问题