Skip to content

Insert a commit in a stack #478

Answered by arxanas
mikepqr asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks to @claytonrcarter, in the latest master, you can run git move -I -x d -d a (git move --insert --exact d --dest a) to insert d just after a.

In this case, --exact is the same as --source, but it would be different if d had a descendant commit that you didn't want to move. I'm guessing that for rearranging workflows, you probably want to use --exact instead of --source.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mikepqr
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