使用Git整合代码
1.将本地分支的更新传到远程主机
Step: 1. git add .
2. git commit -m "description"
3. git push 远程主机(origin) 本地分支
2.合并分支
Step:1. git checkout feature(要合到的总分支)
2. git pull origin feature
3. git checkout 自己的本地分支
4. git rebase feature
(5. git rebase --abort
6. git pull origin feature)
5. git add .
7. git rebase --continue
8. git commit -m "description"
9. git push origin 本地分支
本文介绍如何使用Git进行代码整合,包括将本地分支更新推送至远程主机及合并分支的具体步骤。通过详细的操作流程,帮助读者掌握Git的基本用法。
888

被折叠的 条评论
为什么被折叠?



