getsolus / help-center-docs

Solus's Help Center documentation as well as previous User Guide.
https://help.getsol.us
GNU General Public License v2.0
57 stars 83 forks source link

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

Open TraceyC77 opened 1 month ago

TraceyC77 commented 1 month ago

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