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

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

c++ - qgraphicsview horizontal scrolling always has a vertical delta -