git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question: is there a short way to merge the last commit to the second last one?
@ 2025-06-08 18:30 Aditya Garg
  2025-06-08 18:57 ` brian m. carlson
  2025-06-08 20:55 ` Junio C Hamano
  0 siblings, 2 replies; 10+ messages in thread
From: Aditya Garg @ 2025-06-08 18:30 UTC (permalink / raw)
  To: git@vger.kernel.org

Hi all

This is something I usually come across. Sometimes I make a mistake in a commit, and then I create a new commit with a correction. After that I git rebase -i and use the fixup option to make the fixup commit a part of the main commit.

I was wondering if there is a command, like git fixup or something that could make this process easier? I know about git squash but I prefer doing fixup.

Sorry If I didn't notice any docs.

Thanks
Aditya

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-06-09 10:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-08 18:30 Question: is there a short way to merge the last commit to the second last one? Aditya Garg
2025-06-08 18:57 ` brian m. carlson
2025-06-08 19:09   ` Aditya Garg
2025-06-08 19:31   ` Phillip Wood
2025-06-08 19:35     ` Aditya Garg
2025-06-08 21:43       ` brian m. carlson
2025-06-09  4:29         ` Aditya Garg
2025-06-09 10:06     ` Phillip Wood
2025-06-09 10:35       ` Aditya Garg
2025-06-08 20:55 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).