一、仓库的创建git
git --bare init 服务端仓库的创建
服务器
二、检出仓库.net
本地:
code
git clone /path/to/repository
get
远程:同步
git clone username@host :/path/to/repository
it
三、提交文件:ast
git add <filename>class
git commit / git commit -m "提交的log"file
四、同步到服务器仓库
git push origin master