Situation:
- Remote repository has branch
leonardo_da_vinci - Your local repository has branch
leo
In the local repository, I want to push leo <-> leonardo_da_vinci
with the command git push origin
(no following leo:... because I forget this).
How?
You can easily do it with git push origin leo:leonardo_da_vinci,
but how to config git to use git push?
I tried using --set-upstream-to, --track,
and adding to .git/config the line push = refs/head/leo:leonardo_da_vinci into branch leo section.
No luck.
Here is .git/config:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = /some_url/
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[branch "leo"]
remote = origin
merge = refs/heads/leonardo_da_vinci
[branch "origin/leonardo_da_vinci"]
remote = .
merge = refs/heads/leo
My git config has push.default set to simple.