GIT压制本地提交 [英] GIT Squashing Local Commits
问题描述
我刚刚开始使用BASH命令行。 命令: rebase -1 HEAD~2
I'm just starting with the BASH command line. The command : rebase -1 HEAD~2
打开一个编辑器,显示如下内容:
opens up an editor that shows something like:
选择1244第一条消息
pick 1244 first message
选择3343秒消息
现在我是假设在打开的编辑器中更改这些。 第二个是从挑选变为壁球。 接下来我保存并关闭编辑器。
Now I am suppose to change these in an editor that opens. The second one is to be changed from pick to squash. Next I save and close the editor.
编辑器中发生了什么,我将如何更改 - 我是否会复制它们并粘贴然后更改并按回车?为什么我在关闭之前保存编辑器?
What is happening here in the editor, how exactly will I be changing - Will I copy them and paste and then alter and press return? And why do I save the editor before I close it?
我正在尝试学习壁球提交。
I am trying to learn squash commits.
谢谢;真诚地,
Josheir
推荐答案
嗨Josheir,
Hi Josheir,
您可以参考这些文章或主题来了解git squash。
You can refer to these articles or threads to learn about git squash.
问候
Starain
这篇关于GIT压制本地提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!