Push to another branch with git

Viewed 60253

I done a clone of a projet via ssh

git clone ssh ssh://git@10.7.5.11:IMER/ropolo.git

master branch is protected so I can't push my changed.

there is another branch dev_ropolo.

Do I need to bring this branch locally. What is needed to do to be able to push my change to this branch?

Edit:

$ git fetch
* [new branch]      ropolo -> origin/ropolo

$ git branch
* master
4 Answers

to change the branch run:

$ git checkout -b branch_name

to push code to branch run:

$ git push origin remote_branch_name
Related