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
Post a Comment