I was committing my git process and thought that it would be okay if I ignore comments so I used this code
git commit filename
Bash was strange and thus i closed the console now when I use proper command
git commit -m"THIRD COMMIT" filename
It give the following response:
Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier:
what should I do?
The Another git process seems to be running in this repository error is raised if two processes are running Git at the same time. To solve this error, remove your index. lock file in the . git/ directory .
You can use the git reset --merge command. You can also use the git merge --abort command. As always, make sure you have no uncommitted changes before you start a merge.
This is because the node_modules folder is not ignored and hence when we run git add . command git visit all your directory/files and sub directory/files which is not ignored in . gitignore hence it is taking so long time to process it as node_modules contains a large amount of files and folder.
I met this problem recently too.
rm -f ./.git/index.lock
try this commend in your git bash, then you can solve your problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With