Git development
 help / color / mirror / Atom feed
* "git push" says "src refspec XYZ matches more than one" even without explicit XYZ argument.
@ 2016-10-28  3:00 Kannan Goundan
  2016-10-28 19:13 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Kannan Goundan @ 2016-10-28  3:00 UTC (permalink / raw)
  To: git

1. My repo has a branch named 'v1' that is tracking 'origin/v1'.
2. My repo has a tag named 'v1'.
3. I have "push.default" set to "upstream".

I made a commit on branch 'v1' and tried doing a push:

    # git push
    error: src refspec v1 matches more than one.
    error: failed to push some refs to 'git@github.com:whatever/ns1-go.git'

If I rename the branch to 'v1-dev', then the push goes through.

I understand why the command "git push origin/v1 v1" is ambiguous.
But if I do a plain "git push", I thought Git would know to push my
current branch.

[Git version 2.10.1 from Homebrew on Mac OS 10.11.6.]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-28 19:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-28  3:00 "git push" says "src refspec XYZ matches more than one" even without explicit XYZ argument Kannan Goundan
2016-10-28 19:13 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox