开发者

I am developing a site on 2 machines. One at home (no internet) and my VPS How can I update my server code to sync with my netbook code?

开发者 https://www.devze.com 2023-02-06 02:23 出处:网络
The issue is that I can not \'git push\' changes from my netbook, to my online server, however, I can run \'git pull\' on my netbook, and get added / modified files from the work I do on the server. I

The issue is that I can not 'git push' changes from my netbook, to my online server, however, I can run 'git pull' on my netbook, and get added / modified files from the work I do on the server. I split my development time between the two machines equally, and I want a better way to keep the code in sync than creating tarballs.

I am a complete git newbie, so I don't know if this is even possible. I chose git because I heard it was 开发者_如何转开发easy, and I do not have to worry about setting up an svn server.

Is git push even the right command??? So confused!

Also, I can not do a git pull and get the changes from my netbook onto my server. I can not do this because when I am online, I am in a public place, and my vps can not access my netbook.

Cheers!


After doing git push from whichever machine that you've just finished coding on, do a git pull from the other.

0

精彩评论

暂无评论...
验证码 换一张
取 消