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

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -