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

Java sticky instances of class com.mysql.jdbc.Field aggregating -