How to push from one branch to another and checkout?

If the local branch is called “demo” and you want to push to branch called “master” on the remote called “web”, then do the following:

git push web demo:master

If you want to merge from the “master” branch on the remote “web” into your current branch, you can do the following:

git fetch web
git merge web/master

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)