I got this message when i tried to create repository by using Git clone.
git did not exit cleanly (exit code 1)
How to fix this?
Sometimes it happens because of incomplete of some operations such as "stash save". It creates an index.lock file in the .git folder and that causes this error. What you need to do is going in to the .git folder and delete index.lock file and restart what you wanted to do.
The .git Folder
The index.lock File