Re: Question: is there a short way to merge the last commit to the second last one?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 9 June 2025 1:01:19 am IST, Phillip Wood <phillip.wood123@xxxxxxxxx> wrote:
>On 08/06/2025 19:57, brian m. carlson wrote:
>> 
>> If your goal is to just do the fixups and squash and not anything else
>> interactive, then you can do this:
>> 
>>      GIT_SEQUENCE_EDITOR=true git rebase -i --autosquash
>
>Just a quick note to say that since git v2.44.0 you can just run
>
>	git rebase --autosquash
>

Silly question but how does it get to know what is the fixup commit?

>and it will squash any fixup commits without asking you to edit the todo list.
>
>Also "git commit --fixup=amend:HEAD^" allows you to edit the original commit message and this new message will be used when the commit is squashed by "git rebase --autosquash"
>
>Best Wishes
>
>Phillip
>





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux