Moving Branches in git

Moving Branches in git

rebase is different from moving braches .we can move entire branch an replace the any commit of any branch .this uses onto command to do this operation .

Move branch to current(head)

git rebase –onto <branchname>

Move branch to another commit

git rebase –onto <target branch> <source name>
Last updated on by vishal devxo