Moving Branches in git

Moving Branches in git 1

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>

Default image
Vishal Devxo
Vishal Devxo is a DevOps engineer and a Backend developer, he spends all his time for creating good tutorials with better visuals and blogging, developed some projects based on Python-Django, some hacking modules and scripts in python