一、创建本地仓库
进入某一文件夹,在该文件加下建立本地仓库。
git init
git config --global user.name "***"
git config --global user.email "***"
git config --global core.editor vim
git config --global merge.tool vimdiff
git config --global color.ui true
二、提交文件
git add .
git commit -s
三、建立远程仓库
四、本地仓库关联远程仓库
git remote add origin 远程仓库地址
git push -u origin master
五、提交
git add .
git commit -s
git push origin 本地分支