I\'m trying to learn how to use Git and have created a small project with an HTML, CSS, and Javascript file. I made a branch from my basically empty project and then made so
Try deleting index.lock file in your .git directory.
index.lock
.git
rm -f .git/index.lock
Such problems generally occur when you execute two git commands simultaneously; maybe one from the command prompt and one from an IDE.
git