I\'m trying to add a ruby rails file to my repository in gitlab but it somehow wouldn\'t allow me to add the file saying that my file does not have commit checked out.
I had the same Error Message. I fixed it by command below:
git add folder-name/* instead of git add .
git add folder-name/*
git add .
My Folder directory is like below:
Main-folder -folder-one -folder-two
ref: https://github.community/t/error-git-add/2937