Open
Description
I've got this in ~/.gitconfig:
# always push with ssh
[url "[email protected]:"]
pushInsteadOf = https://github.com/
pushInsteadOf = git://github.com/
It yields this for one of the projects I'm working on:
$ git remote -v
origin https://github.com/DanEble/LilyDev.git (fetch)
origin [email protected]:DanEble/LilyDev.git (push)
upstream https://github.com/fedelibre/LilyDev.git (fetch)
upstream [email protected]:fedelibre/LilyDev.git (push)
The problem I have is that when I try to push the local branch master
to the remote branch origin/master
, GitUp prompts me to authenticate for HTTPS.
The way I'm trying to push is through the menus:
- click on
master
in the graph - Edit Local Branch "master" ▶︎
- Push to Remote ▶︎
- origin
The first prompt is "Are you sure you want to...", and I click "Push Branch." That's fine.
The next prompt is the problem. The window title is "Authentication Required" and the URL shown is the fetch URL rather than the push URL (see above).
After attempting to push with GitUp, I ran git push origin master:master
in a shell, which worked fine.