git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git rebase -f --autosquash

From
AKAndy Kitchen <kitchen.andy@gmail.com>
Date
May 12, 2012, 10:38 UTC
Message-ID
<D7BE2BACB49749DB9FC37D4ACCCD008B@gmail.com>
Hi All, 
I commonly use:
git commit --fixup <commit>
to preen commits before pushing them. I can run
git rebase -i --autosquash HEAD@{upstream}

to apply these fixes, however, autosquash only applies to interactive rebases.

Because I am sure that my fixes are applicable, I would like to be able to non-interactively autosquash, possibly like so:

git rebase -f --autosquash HEAD@{upstream}
Would anyone else find this feature useful?
Kind Regards
AK
Next: Carlos Martín Nieto
Message 1 of 8 in “git rebase -f --autosquash”
  1. Andy KitchenMay 12, 2012
  2. Carlos Martín NietoMay 12, 2012
  3. Junio C HamanoMay 14, 2012
  4. Andy KitchenMay 26, 2012
  5. Vincent van RavesteijnMay 26, 2012
  6. Junio C HamanoMay 27, 2012
  7. Phil HordJun 4, 2012
  8. Junio C HamanoJun 4, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.