查看分支 git branch 新家分支 git branch new-branch 切换到新分支 git checkout new-branch 添加特定文件到该分支 git add path/to/specific-file-or-directory 提交更改 git commit -m 备注提交信息 push代码到GitHub git push origin v3 // v3为分支名