Answers for "git split commit into two"

0

git split commit into two

git rebase -i <sha1_before_split>
# mark the targeted commit with 'edit'
git reset HEAD^
git add ...
git commit -m "First part"
git add ...
git commit -m "Second part"
git rebase --continue
Posted by: Guest on January-14-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language