Could not lock config file .git/config: File exists

  1. Describe the issue briefly
    crio-user@ayushshawz:~/workspace/ayushshawz-ME_QEATS_REVIEW_MP$ git remote add ME_QEATS_REVIEW_MP_MODULE_TAG_SUGGESTION_STUB git@gitlab.crio.do:ME_QEATS_REVIEW_MP_STUBS/ME_QEATS_REVIEW_MP_MODULE_TAG_SUGGESTION_STUB.git
    error: could not lock config file .git/config: File exists
    fatal: could not set ‘remote.ME_QEATS_REVIEW_MP_MODULE_TAG_SUGGESTION_STUB.url’ to ‘git@gitlab.crio.do:ME_QEATS_REVIEW_MP_STUBS/ME_QEATS_REVIEW_MP_MODULE_TAG_SUGGESTION_STUB.git’
    crio-user@ayushshawz:~/workspace/ayushshawz-ME_QEATS_REVIEW_MP$
    crio-user@ayushshawz:~/workspace/ayushshawz-ME_QEATS_REVIEW_MP$ git pull ME_QEATS_REVIEW_MP_MODULE_TAG_SUGGESTION_STUB master --allow-unrelated-histories
    fatal: ‘ME_QEATS_REVIEW_MP_MODULE_TAG_SUGGESTION_STUB’ does not appear to be a git repository
    fatal: Could not read from remote repository.

  2. How much time have you spent debugging this issue?
    (Please spend at least 15 minutes to resolve the issue on your own before posting a new topic here)
    1 hour

Refer To This Link