Repository navigation
|
Firstly, thanks for making this great project. Now my question: I have a repo that looks like this: My goal is to make another commit to the If I didn't use branches this would be trivial. I could just make a fixup commit, or a full commit and then Any tips on better ways of handling this? |
Replies: 2 comments 9 replies
|
NOTE: I tried a different way of doing this (make the new commit during an interactive rebase) but that method is equally verbose and also broken (#316) |
|
EDIT: for the time being, I've added a workflow documentation item titled "Adding a commit to an earlier branch" which points to this answer. As a general resource, you might want to read this article, as it may answer some workflow questions: https://github.com/arxanas/git-branchless/wiki/Workflow:-Editing-an-old-commit's-contents. I've added a to-do to #115 for your specific use-case, and hopefully I'll get around to it someday π . For this case, here's what I would do: 1.
Your smartlog should look like this: 3. Now it should look like this: Generally speaking, you don't need to heavily rely on |
EDIT: for the time being, I've added a workflow documentation item titled "Adding a commit to an earlier branch" which points to this answer.
As a general resource, you might want to read this article, as it may answer some workflow questions: https://github.com/arxanas/git-branchless/wiki/Workflow:-Editing-an-old-commit's-contents. I've added a to-do to #115 for your specific use-case, and hopefully I'll get around to it someday π .
For this case, here's what I would do:
1.
git co feature-22.
git commit -am 'more feature2 work'.git commit, you can instead rungit record -Im 'more feature2 work'toβ¦