Working with git from 2 laptops with no bare repo

前端 未结 4 2055
长发绾君心
长发绾君心 2021-01-06 11:26

I\'ve started project in my first laptop. git init, and start working. Tomorrow i\'m going to vacations. I want to take with me my smaller laptop.

And work with pro

4条回答
  •  鱼传尺愫
    2021-01-06 12:28

    just:

    git push
    

    If you created the repo on small laptop from big laptop over ssh from a user that owned the repo on big laptop, and big laptop is running an ssh service, you'll be fine.

    You can supply the argument to git push of the bigger laptop and repo dir if you want, but it should already be your origin.

    If you do it this way, just remember to take appropriate action to update your tree on the big laptop when you go back to it.

提交回复
热议问题