0

Im currently using git repository. Unable to push my files to the remote repository.

It says "Discard Changes - Cannot unlock" for C:/somelocation/.git/index.

No other details to figure out the problem.

enter image description here

Even tried to reset.

git reset

But gives the below error.

An internal error occurred during: "Resetting to refs/heads/develop". Exception caught during execution of reset command. {0}

isherwood
  • 58,414
  • 16
  • 114
  • 157
Sireesh Yarlagadda
  • 12,978
  • 3
  • 74
  • 76

1 Answers1

5

Try deleting C:/somelocation/.git/index.lock. More on that

You may then need to do a reset:

git reset
Community
  • 1
  • 1
isherwood
  • 58,414
  • 16
  • 114
  • 157