git branch name capitalization problems led push to remote branch failure

windows system does not recognize the results in the case folder

 

Local branch master,

In the above, a new branch master Hotfix / aa

Because Hotfix capitalized, so the windows system will

Project .git \ refs \ heads the list below to create a Hotfix folder,

Suppose branches back to build hotfix / aa-1

windows'll aa-1 on the .git \ refs \ heads \ Hotfix below

However, the display or git hotfix / aa-1

This push will complain to the remote

fatal: hotfix/aa-1 cannot be resolved to branch.

 

Solution: .git \ refs \ heads

To this directory renaming Hotfix folder, change the hotfix on ok

 

Guess you like

Origin www.cnblogs.com/newcbs/p/11096395.html