How do I add a remote Git repository to an Ubuntu Server?

后端 未结 7 741
孤街浪徒
孤街浪徒 2021-01-30 03:52

I have created a Git repository on my Desktop machine (Windows 7) with:

git init
git add 
git commit -m \"added my files\"

7条回答
  •  天涯浪人
    2021-01-30 04:29

    you need a colon:

    git remote add origin jonas@192.168.1.10/home/jonas/code/myproject.git
    

    should be:

    git remote add origin jonas@192.168.1.10:/home/jonas/code/myproject.git
    

提交回复
热议问题