Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Additions to git tips & tricks - splitting a commit during rebase -i #571

Open
TraceyC77 opened this issue Oct 20, 2024 · 0 comments
Open

Comments

@TraceyC77
Copy link
Contributor

git rebase -i origin/HEAD --autostash
find the needed commit and change pick to e (short for edit)
save and exit
Then git reset HEAD~
If you run git status you can see the changes are unstaged
Then gotopkg sckit-image and git add and git commit as normal, then do the same for the second split
Tthen git rebase --continue and git push --force-with-lease

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant