折叠git commits

我认为每个功能都必须提交一次。但是,一个重要功能是由一系列有用的部分组成。考虑重构。尽管其他人说重构素是添加/修改功能的副作用,并且不值得单独提交,但请考虑一下我在代码中做了一些修复。它们都重构代码库的不同区域。我不想弄得一团糟,以致于难以理清,这与变化有关。因此,我产生了多个重构提交。但是,人们很可能不想看到所有这些微小的细节。因此,我想将所有重构提交隐藏在一个提交文件夹下。在历史记录查看器中,例如gitk,我应该可以在需要时展开/折叠文件夹。是否有解决此问题的方法,也许可以在其他版本控制中解决?

霍布斯

使用功能分支。将它们合并到主线中git merge --no-ff然后,主线只是一系列合并提交,显示一个功能添加了另一个功能,但是如果您想查看进入某个功能的各个提交,它们就在分支上。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

错误计数git commits

来自分类Dev

editing commits with git rebase

来自分类Dev

旧的git-commits移到新的分支

来自分类Dev

使用gpg在Eclipse中签署git commits

来自分类Dev

旧的git-commits移到新的分支

来自分类Dev

git标签比git commits访问速度更快吗?

来自分类Dev

Git post-receive hook loop though all commits

来自分类Dev

Git BFG to retroactively enable LFS - protected commits issue

来自分类Dev

Git workflow: submitting pull requests to upstream and using the commits in the meantime

来自分类Dev

git“在X commits之前或之后”是什么意思?

来自分类Dev

值对于基数太大(比较git commits时的错误令牌)

来自分类Dev

如何查找git commits删除了文件中的行

来自分类Dev

在其他分支中的Eclipse git commits消失了

来自分类Dev

GPG签署旧的git commits是个好主意吗?

来自分类Dev

有没有办法修剪中间git commits?

来自分类Dev

如何将`git rm` commits合并回master?

来自分类Dev

自动从 git commits to github 中删除 >100MB 的文件

来自分类Dev

我可以将_other peoples_ git commits压入已提交的PR中吗?

来自分类Dev

为什么git commits在合并的分支上显示在我的主分支上?

来自分类Dev

当我挤压N-commits时,Git提交模板不显示

来自分类Dev

PGERROR:错误关系“ table_name”不存在(避免git commits)

来自分类Dev

使用scp,ftp,rsync或其他命令将git commits上传到外部主机

来自分类Dev

Visual Studio未推动的git commits指标限制为99(表示99 *)

来自分类Dev

如何检查 git commits 在消息中包含字符串模式?

来自分类Dev

Git: I've a feature branch with 80+ commits. How can I safely merge it into develop/production without ruining the history?

来自分类Dev

为什么git commits存在于我的本地克隆目录中,而不存在于GitHub上?

来自分类Dev

可以从不同位置折叠git manager文件

来自分类Dev

How to squash commits in a Pull request

来自分类Dev

PyCharm代码折叠折叠

Related 相关文章

  1. 1

    错误计数git commits

  2. 2

    editing commits with git rebase

  3. 3

    旧的git-commits移到新的分支

  4. 4

    使用gpg在Eclipse中签署git commits

  5. 5

    旧的git-commits移到新的分支

  6. 6

    git标签比git commits访问速度更快吗?

  7. 7

    Git post-receive hook loop though all commits

  8. 8

    Git BFG to retroactively enable LFS - protected commits issue

  9. 9

    Git workflow: submitting pull requests to upstream and using the commits in the meantime

  10. 10

    git“在X commits之前或之后”是什么意思?

  11. 11

    值对于基数太大(比较git commits时的错误令牌)

  12. 12

    如何查找git commits删除了文件中的行

  13. 13

    在其他分支中的Eclipse git commits消失了

  14. 14

    GPG签署旧的git commits是个好主意吗?

  15. 15

    有没有办法修剪中间git commits?

  16. 16

    如何将`git rm` commits合并回master?

  17. 17

    自动从 git commits to github 中删除 >100MB 的文件

  18. 18

    我可以将_other peoples_ git commits压入已提交的PR中吗?

  19. 19

    为什么git commits在合并的分支上显示在我的主分支上?

  20. 20

    当我挤压N-commits时,Git提交模板不显示

  21. 21

    PGERROR:错误关系“ table_name”不存在(避免git commits)

  22. 22

    使用scp,ftp,rsync或其他命令将git commits上传到外部主机

  23. 23

    Visual Studio未推动的git commits指标限制为99(表示99 *)

  24. 24

    如何检查 git commits 在消息中包含字符串模式?

  25. 25

    Git: I've a feature branch with 80+ commits. How can I safely merge it into develop/production without ruining the history?

  26. 26

    为什么git commits存在于我的本地克隆目录中,而不存在于GitHub上?

  27. 27

    可以从不同位置折叠git manager文件

  28. 28

    How to squash commits in a Pull request

  29. 29

    PyCharm代码折叠折叠

热门标签

归档