git tfs pull command exited with error code: 128

Argh!! Another very unhelpful error message:

image

What am I supposed to do with that? Today I found out what. Run the command again with –d for debug.

image

And there is the message that should be have been with the error code:

fatal: Unable to create ‘C:/Code/Main/.git\tfs\default\index.lock’: File exists. If no other git process is currently running, this probably means a git process crashed in this repository earlier. Make sure no other git process is running and remove the file manually to continue.

I can work with that. There were no other git processes running, but the file .git\tfs\default\index.lock did exist. Deleting that we get further, this time with a very helpful error message:

image

Run the command: git tfs cleanup-workspaces

image

Looks good. Run the pull again and we are back in business.

image

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s