-2

I am working on a different branch in my local machine, but I want to push the codes to a different branch upstream. How can this be done. I am trying to push to nicholas-dev
This is the error message I am getting

C:\Users\njoca\Documents\BoTest\boegisexternal (dev-samuel -> origin)
λ git push nicholas-dev
fatal: 'nicholas-dev' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Joca
  • 127
  • 2
  • 11

1 Answers1

2

You need to use:

git push origin dev-samuel:nicholas-dev

where origin is the name of the remote, dev-samuel the name of the local branch, and nicholas-dev the name of the branch on the remote.

ruohola
  • 21,987
  • 6
  • 62
  • 97