如何将一个巨大的代码分割成Gerrit中的小块 [英] How split a huge code to small patches in Gerrit
问题描述
目前,我想为OpenStack做出贡献,而我是Gerrit的新手。
在Gerrit中,我创建了一个新分支 my_branch
,但实际上我的代码非常庞大。请让我知道如何使用同一个分支将我的代码拆分为更小的更改 my_branch
。
Pleaas托盘git gui工具 - citool,gitk。
git citool
选择哪些文件,甚至哪些行放入新的提交中。
非常有用,也许还有 gitk
命令,它们显示你的提交树。 gitk
也可以从gui运行一些其他的git comman。
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
.
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.
这篇关于如何将一个巨大的代码分割成Gerrit中的小块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!