Skip to content

pushInsteadOf not respected #626

Open
@DanEble

Description

@DanEble

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:

  1. click on master in the graph
  2. Edit Local Branch "master" ▶︎
  3. Push to Remote ▶︎
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions