github - git: can't create upstream branch -


the problem

i'm going bananas due git (or github?) idiosyncrasy - i've created new branch, can't push upstream repo on github. not first branch i'm pushing on repo, , went smooth far.

walkthrough

i've created new branch:

$ git checkout -b adam/no-push-bugfix 

made changes file, and added of them (this means of changes not committed):

$ git add --patch path/to/some/file 

made sure changes right:

$ git diff --staged $ git commit -v $ git status 

and tried push:

$ git push --set-upstream origin adam/no-push-bugfix $ fatal: adam/whatever-name-bugfix cannot resolved branch. 

any idea why new branch rejected upstream?

i not find right explanation issue on internet. adding other people understand problem.

git branch name case-sensitive , mapped file/directory in repository (not common new branches). result case-difference in git branch name may cause problem in case. in particular case see existing branches started "adam/". means there folder name "adam" exists in .git/refs/heads. when try push branch name started "adam/" conflicts exiting folder.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -