How do I code against one github repo on 2 computers?

后端 未结 4 1045
孤独总比滥情好
孤独总比滥情好 2021-01-29 18:11

I have two computers from which I want to contribute to one github repo. How can I accomplish this?

4条回答
  •  一生所求
    2021-01-29 18:18

    You need to clone the repository on your second computer.

    git clone git@github.com:myusername/myrepo.git
    

    Now you can use git pull and git push to keep your local repository in sync with the one on GitHub.

提交回复
热议问题