如何将一个巨大的代码分割成Gerrit中的小块 [英] How split a huge code to small patches in Gerrit

查看:122
本文介绍了如何将一个巨大的代码分割成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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆