I git clone a project on my computer and have a local master branch, let say A. Here, I create some local branches (let say B and C).
I made some changes in B and C. So, how do I can git push to merge the changes in B and C to A?
Normally, I see that
git push origin masterto push to the remote repository, but I want to push to a local branch.
Thanks
Use git merge
instead to manipulate local branches.
git checkout master
git merge B
git merge C
If you really want to push a local branch to another local branch, git push . B:master
, though this is quite rare.
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