简体   繁体   中英

Making changes to branch after code review in git

I have a branch feature/my-changes which I have made changes to. I pushed these changes, created a pull request, and have gotten feedback on my changes through a code review. My question is: Now that I see the changes I need to make in github (from code review comments), do I simply go back to my code editor and make those changes in my branch, make a new commit, and push again? Or should I be "checking out" a revision of my branch's history and make edits there? I'm not really sure how to proceed after this code review...

The usual way to deal with this is checking out the branch feature/my-changes , then make the changes according to the review comments, create a new commit and push your branch.

Yes.Since you have not yet merged the branch (also if it is merged) you can clearly make changes in the same branch and then commit and you can use the same Pull Request again for Review and merge.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM