Git中修复bug

问题描述:提交的远程分支中有一个小bug需要修复;

首先在本地拉取指定分支的代码:

git checkout -b test origin/远程分支
git pull

再从test分支中切一个分支:

git checkout -b issue-01

修改相应的bug,并提交到暂存区:

git add 
git commit -m ""

然后切换到test分支,并merge分支issue-01:

git merge issue-01

然后提交分支test到远程分支

 

posted @ 2018-11-12 11:59  JayInnn  阅读(205)  评论(0编辑  收藏  举报