How do I do an initial push to a remote repository with Git?

前端 未结 6 891
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-07 06:37

I\'ve read through countless tutorials and I keep coming up short. Here\'s what I\'ve got:

-- I\'m running RubyMine on my Windows desktop
-- I\'ve installed Gi

6条回答
  •  情歌与酒
    2020-12-07 07:13

    @Josh Lindsey already answered perfectly fine. But I want to add some information since I often use ssh.

    Therefore just change:

    git remote add origin youruser@yourserver.com:/path/to/my_project.git
    

    to:

    git remote add origin ssh://youruser@yourserver.com/path/to/my_project
    

    Note that the colon between domain and path isn't there anymore.

提交回复
热议问题