'git add .' doesn't work

前端 未结 3 2128
既然无缘
既然无缘 2020-12-15 13:07

I am currently trying to setup Git for a project I have been working on for a while. I do remember quite a while ago setting up Git but never used it for various reasons. No

3条回答
  •  天命终不由人
    2020-12-15 13:40

    Instead of

    git init
    git remote add origin https://USERNAME@bitbucket.org/USERNAME/APPNAME.git
    

    you should use

    git clone origin https://USERNAME@bitbucket.org/USERNAME/APPNAME.git .
    

    since you want to clone an existing repository and not re-create it.

提交回复
热议问题