1、创建新分支:
git branch branch_name;
(branch_name 为分支名)
2、切换到新分支:
git checkout branch_name;
(branch_name为分支名)
3、提交代码过程:
commit——>fetch——>pull——>push
git branch branch_name;
(branch_name 为分支名)
git checkout branch_name;
(branch_name为分支名)
commit——>fetch——>pull——>push
本文标题:Git笔记
本文链接:https://www.haomeiwen.com/subject/zqviextx.html
网友评论