Git - Merge a part of branch commits -


how merge several, selected commits branch b a. did not sure if there 1 line solution this:

git log -p -1 b~~ | git apply git log -p -1 b~ | git apply git commit -m 'merge penultimate , before penultimate b commits a' 

use git cherry-pick

in case (when branch current head):

git cherry-pick b~1


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -