Pushing local branch to remote branch in git
<p>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 </p>

<pre><code>git push -u origin/tech opt
</code></pre>

<p>But its failing with the error</p>

<pre><code>fatal: 'origin/tech' does not appear to be a git repository
fatal: could not read from the remote repository
</code></pre>

<p>The remote branch origin/tech has been confirmed to exist by doing git branch -r.</p>