完善参考
http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000
1.在你的服务器Server创建一个类似于svn服务器的仓储
当前目录为/workspace/git/test执行以下命令sudo git init --bare test.git
2.在我要开发机上面进行拷贝这个仓储,相当于svn的checkout
git clone username@ipaddress:/workspace/git/test/test.git
username 为Server的用户名
ipaddress为Server的ip地址
3.开发机提交我的修改代码
git add -A
git commit -m "当前提交时候的日志"
git push
4.更新代码 类似于svn的update
git pull origin master
5.本地修改了代码,但是想用远端的将本地的覆盖了可以用以下命令
git reset --hard
992

被折叠的 条评论
为什么被折叠?



