Git中修复bug时间:2023-03-08 19:17:35 问题描述:提交的远程分支中有一个小bug需要修复; 首先在本地拉取指定分支的代码: git checkout -b test origin/远程分支 git pull 再从test分支中切一个分支: git checkout -b issue- 修改相应的bug,并提交到暂存区: git add git commit -m "" 然后切换到test分支,并merge分支issue-01: git merge issue- 然后提交分支test到远程分支