In my case, accidentally .git/HEAD
file was messed up with non unknown characters, but .git/ORIG_HEAD
file was ok (it has commit id). So, I copied .git/ORIG_HEAD
content to .git/HEAD
file. Then restarted IDE (Aptana) and everything worked fine.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…