A feature branch is now too far away from the original development branch to merge back changes. I would rather take this branch as new base for further development.
What is the best method to use this branch as new development branch? As there is no other developer involved there should not be any conflicts.
CodePudding user response:
You can delete your existing development branch and create a new development branch from your feature branch and start using it as a development branch.
Follow the below command one by one and you will get your new development branch the same as the existing feature branch.
git checkout <feature_branch_name>
git branch -D <development_branch_name> // will delete development branch from local
git push origin :<development_branch_name> // will delete development branch from remote
git checkout -b <new_development_branch_name>
git push origin <new_development_branch_name>