I am trying to push my local branch 'opt' to remote branch origin/tech. My head points to the remote branch origin/tech. I am using the following command
git push -u origin/tech opt
But its failing with the error
fatal: 'origin/tech' does not appear to be a git repository
fatal: could not read from the remote repository
The remote branch origin/tech has been confirmed to exist by doing git branch -r.