使用Git合代码到指定分支(feature)

使用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 本地分支

发布了8 篇原创文章 · 获赞 1 · 访问量 3855

猜你喜欢

转载自blog.csdn.net/Mensonge/article/details/79356652