I have the following branches in my local git:
-master
-develop
-test
I am adding a new feature, using the test branch, which was created months ago. I need to update its content (replace everything) with the develop branch.
How can I do that?
In one go, recreate test
branch from where dev
is, and check it out :
git checkout -B test develop
Go to develop
branch
git checkout develop
Remove the test
branch
git branch -d test
Create a new branch called test
git checkout -b test
The new branch test
will contain all content of develop branch.
test
branch and create it new with the same state asdevelop
?git pull origin develop
from you test branchdevelop
is ahead oftest
i think it will replace whole branch?