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
  • 52,576
  • 15
  • 105
  • 143
Sireesh Yarlagadda
  • 11,766
  • 3
  • 71
  • 74

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
  • 52,576
  • 15
  • 105
  • 143