新建分支
git branch test_name
查看本地分支
git branch
查看本地分支和远程分支
git branch -a
切换分支
git checkout test_name
将test_name1内容复制到本分支
git merge test_name1
查看分支状态
git status
查看本地修改的内容
git diff
提交
git add file
git commit -m "fix bug"
git push origin test_name
转载请注明原文地址:https://ipadbbs.8miu.com/read-46055.html