Note that there are some explanatory texts on larger screens.

plurals
  1. POGit push: set target for branch
    primarykey
    data
    text
    <p>I'd like to push my current branch (hp1) with</p> <pre><code>git push </code></pre> <p>and not</p> <pre><code>git push origin hp1:team/hp1 </code></pre> <p>The remote branch already exists.</p> <p>My local branches:</p> <pre><code>develop master * hp1 </code></pre> <p>git remote show origin tells me:</p> <pre><code>Remote branches: develop tracked master tracked team/h2 tracked team/hp1 tracked team/n1 tracked Local branches configured for 'git pull': develop merges with remote develop master merges with remote master hp1 merges with remote team/hp1 Local refs configured for 'git push': master pushes to master (up to date) </code></pre> <p>I already tried</p> <pre><code>git branch --set-upstream hp1 origin/team/hp1 </code></pre> <p>and</p> <pre><code>git branch --set-upstream hp1 refs/remotes/origin/team/hp1 </code></pre> <p>but both don't work.</p> <p>My colleague has a local branch called as the remote branch (team/hp1) and the code above works for him. He gets at the end an additional</p> <pre><code>Local refs configured for 'git push': develop pushes to develop (up to date) master pushes to master (up to date) team/hp1 pushes to team/hp1 (up to date) </code></pre> <p>So maybe you can tell me what's wrong and how to fix it.</p> <p><strong>EDIT</strong> my config:</p> <pre><code>[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* url = ***@***:***.git [branch "master"] remote = origin merge = refs/heads/master [branch "hp1"] remote = origin merge = refs/heads/team/hp1 </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload