问题
Currently, I want to contribute to OpenStack and I am new to Gerrit.
In Gerrit, I created a new branch my_branch
but actually my code is very huge. Please kindly let me know how I can split my code to smaller changes with the same branch my_branch
.
回答1:
Pleaas tray git gui tools - citool, gitk.
git citool
gives possibility to choose which files and even which lines you put in new commit.
Very useful maybe also gitk
command which show your commits tree. gitk
gives also posibility to run some other git comman from gui.
来源:https://stackoverflow.com/questions/38651314/how-split-a-huge-code-to-small-patches-in-gerrit