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

后端 未结 7 665
孤街浪徒
孤街浪徒 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:37

    Did you setup the repository on the remote server? You need to run

    mkdir -p /home/jonas/code/myproject.git
    cd /home/jonas/code/myproject.git
    git init --bare
    

    on the server in order to set it up. I recommend taking a look at how to setup a git server in the free ProGit book.

提交回复
热议问题