git的全局配置
git config -l
全局查看配置信息
git config --global -l
增加git全局配置信息
git config --global user.name ‘XXX‘
git config --global user.email ‘XXX‘
clone
git clone (检查一下有没有隐藏文件)
建立自己的分支
git branch
切换分支
git checkout
提交
git add .
提交日志
git commit -m ‘XXX‘
回到主分支
git checkout master
拥有团队最新的代码
git pull origin master
本地主支的代码与分支代码合并
git merge
上传代码
git push origin master
查看本地仓库和谁连接
git remote -v
新建连接
git remote add origin address
删除连接
git remote rm origin
提交之前最好先拉取
git pull origin master
git push origin master
原文:https://www.cnblogs.com/changgf/p/13685238.html