常用指令:
git clone ‘http:xxxx’ 获取工程
git add file/* 添加文件到提交目录
git commit -m"提交注释" 提交代码到本地分支
git push origin master 推送本地分支到master
git pull 更新master到本地分支
(本地)创建分支+提交分支指令:
git checkout -b hotfix
git commit -a -m 'fixed the broken email address'
git checkout master
git merge hotfix
(远程)创建分支+提交分支指令:
git branch -r 查看本地分支
git branch -a 查看远程分支
git branch '分支名' 创建远程分支
git gui
git push origin '分支名'
注:第一次无法pull,只能push
git pull origin '分支名'
git diff 查看修改内容
git报错:The following untracked working tree files would be overwritten by merge