GIT压制本地提交 [英] GIT Squashing Local Commits

查看:79
本文介绍了GIT压制本地提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用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.

#TRANACTIVE MODE

#使用Git将我的最后一次X提交压缩在一起

问候

Starain


这篇关于GIT压制本地提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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