Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by emmanuelbernard.com #
 
PREVIOUS NEXT
Tagged: #git #split #commit
ADD COMMENT
Topic
Name
6+6 =