Hi,
I have a somehow non-canonical git configuration with two repositories for pulling and pushing. They both committ to the branch master. I want to push automatically to both repositories after committing. This would be origin/master with the following config file:
[core] repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = https://github.com/REPRO1
url = https://git@latex.hu-berlin.de/REPRO2
[remote "github"]
url = https://github.com/HUSyntax/REPRO1
fetch = +refs/heads/*:refs/remotes/github/*
[remote "overleaf"] url = https://git@latex.hu-berlin.de/REPRO2
fetch = +refs/heads/*:refs/remotes/overleaf/*
[branch "master"]
remote = origin
merge = refs/heads/master
With this setting Sourcetree offers to immedeately push to github/master.
Is there any chance to change this?
Also: When I push, I have to select the branch every time although there is just the branch master. Sourcetree remebers origin as destination for pushing but forgets the branch.
Maybe I confused Sourcetree since I did a lot of experimenting ...