git cherry-pick commit-hash
git rebase -i @~2
(old git version you must use HEAD instead of @)
git rebase -i HEAD^2
pick 8a527db Fix coding standard pick 0721a90 Implement new method NewMethod()
Use "pick" for the first line and change the second "pick" by "s" or "squash" to use the commit and meld into previous one.
pick 8a527db Fix coding standard s 0721a90 Implement new method NewMethod()
Then save and quit the file and update the commit message.
git commit --amend
git commit --date="Tue Dec 8 2015 12:12:12 CET"
git commit --amend --date="Tue Dec 8 2015 12:12:12 CET"
git format-patch -n @^1
(old git version you must use HEAD instead of @)
git format-patch -n HEAD^1
git am 0001-commit-message.patch
git submodule update --init
git submodule foreach git pull origin master