I am new to git and was trying to commit, but I got stuck in what looked like vi which I\'m not familiar with. I managed to get out of it, but I think
git
vi
Removing index.lock file manually from .git directory worked.
or
From command line:
$ rm -rf .git/index.lock
Note: Make sure that only one index file exist on .git directory