repository - Git: Reference has invalid format: 'refs/heads/SomeBranch' -


i new git , following error occurs:

fatal: reference has invalid format: 'refs/heads/somebranch' (conflict through use of capital , small initial letters) unexpected end of command stream

somebranch (capitalized!) deleted earlier (local , on remote) , working on local branch somebranch (not capitalized!). then, git add local changes , git commit -m "some changes" -a. error occured while git push , when git push -u origin somebranch. somebranch not yet in repo.

make backup of entire project (just in case) , do

awk '!/conflict/' .git/packed-refs > tmp && mv tmp .git/packed-refs 

Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -