1、仓库的建立
git --bare init 服务端仓库的建立
2、检出仓库
本地:
git clone /path/to/repository
远程:
git clone username@host :/path/to/repository
3、提交文件:
git add <filename>
git commit / git commit -m "提交的log"
4、同步到服务器仓库
git push origin master
1、仓库的建立
git --bare init 服务端仓库的建立
2、检出仓库
本地:
git clone /path/to/repository
远程:
git clone username@host :/path/to/repository
3、提交文件:
git add <filename>
git commit / git commit -m "提交的log"
4、同步到服务器仓库
git push origin master
转载于:https://my.oschina.net/u/579890/blog/369402