git - Move some already existing and pushed commits to a new branch -


i have feature branch topic x, in branch did commits better in feature branch y, forgot create before beginning.

is there way move commits new branch? not matter if branch branched x or master or anywhere else.

if latest commits, see instructions here. otherwise, can cherry pick commits other branch, delete them old. remember: if have pushed changes, rewriting history bad idea.


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> -