当我运行git merge --squash test_branch时,它显示:
Squashed commit of the following:
commit ac72a4308ba70cc42aace47509a5e
Author: quyen <q@me.com>
Date: Tue Jun 11 10:23:07 2019 +0500
Added algorithms for Cosine-similarity
commit 77df2a40e53136c7a2d58fd847372
Author: quyen <q@me.com>
Date: Tue Jun 11 13:02:14 2019 -0700
Set stage for similar objects
commit 249cf9392da197573a17c8426c282
Author: quyen <q@me.com>
Date: Thu Jun 13 16:44:12 2019 -0700
Fixed a bug in space world automation但我想要的是:
Squashed commit of the following:
* Added algorithms for Cosine-similarity
* Set stage for similar objects
* Fixed a bug in space world automation我该怎么做?我不想为提交添加一些细节,只有提交的名称就足够了。
发布于 2020-08-30 14:24:35
我也想知道这个问题的正确解决方案。作为一种棘手的解决方法,您可以搜索以下正则表达式并将其替换为*:
\ncommit \w+\nAuthor:.*\nDate:.*\n\n\s+https://stackoverflow.com/questions/60200679
复制相似问题