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到远程分支

猜你喜欢

转载自www.cnblogs.com/jayinnn/p/9945673.html