Question: 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?

Answer: 
1. Right-click > Revert > Select All
2. Click OK;
3. After Revert process is finished, PULL.

Problem solved!
For My case i did 3 steps to achieve the sucessful build.

1. revert all the local changes if any (or just keep a copy of it in case you need it for future use)
2. Do a git clean up, do a pull and check the logs for error
3. GO to the git bash option and the error i was getting in log in above stem (i my case )
as "**error: cannot lock ref and the branch details**", so in the git bash i ran the following command
git update-ref -d 'Branch\_name'

For example if the error was something like 
\*\*

* ISSUE

\*\*error: cannot lock ref 'refs/remotes/origin/EXMPLEISSUE/EXAMPLE-1011\_DEMO\_web\_interface\_DOES\_NOT\_GET\_GIT\_UPDATE': 

Then i ran following command 
git update-ref -d 'refs/remotes/origin/EXMPLEISSUE/EXAMPLE-1011\_DEMO\_web\_interface\_DOES\_NOT\_GET\_GIT\_UPDATE' 

We have to ensure all the error in logs to be solved similarly before getting a successful pull by doing git update-ref -d 'Branch\_name' and finally i can get the take the successful pull from git.