Skip to content

Hide intermediate commits created by git rebase -i from git sl #1272

Answered by claytonrcarter
vgrigoriu asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a way to hide them automatically?

Not at present, but there is work in progress at #1098, and further discussion at #1088

The current workaround, as noted in #1088, is running something like git hide 'stack() & message("This is a combination")' after your rebase. If all of your work is on a branch, you may also have luck with something like git hide 'stack() - main()..branches()', but beware that that will also hide any "branchless" commits you've created.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vgrigoriu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants