Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 572 Bytes

Github.md

File metadata and controls

43 lines (33 loc) · 572 Bytes

Git Squash into Parent

git rebase -i [startpoint] 
pick   cd27881  // squash all into this commit
squash 3eaee88
squash e1d897b
squash bbef7f2
reword 6391223

Git Squash into Parent from between

squash 3eaee88   // squash between commit into newest
squash e1d897b
squash bbef7f2
reword 6391223

Git Rebase all commit into Master

git rebase -i --root master

stash files

git stash push -u filename 
git stash pop

Remove last commit from

git commit --amend -m "an updated commit message"