I made a new branch for my code like a month ago, I created feature1 branch from develop branch.
⇒ git branch develop * feature1
I've been working on feature1 for a month now and a lot of the changes pushed to develop branch, How can I update my current branch feature1 with the latest commits at develop one?
I don't want to checkout master and merge my feature1 branch. Neither I want to use git cherry-pick to manually move commits from develop to feature1.
Any help ?
Forces an update of the remote branch after rewriting the history locally. Use git push -f to force update the remote branch, overwriting it using the local branch's changes. This operation is necessary anytime your local and remote repository diverge.
You just merge develop to feature1:
git checkout feature1 git merge develop
There is no need to involve another branch such as master.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With