Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git alias: fix-index #254

Open
kieranpotts opened this issue Sep 21, 2024 · 0 comments
Open

Git alias: fix-index #254

kieranpotts opened this issue Sep 21, 2024 · 0 comments
Labels
feature Ideas for new or improved operations and behaviors

Comments

@kieranpotts
Copy link
Owner

If a Git operation fails to complete, you can get fatal errors on subsequent commands.

$ git commit -m "message"
fatal: Unable to create '/path/to/.git/index.lock': File exists.

The solution is to remove the index.lock file:

$ rm -f ./.git/index.lock

The scope of this ticket is:

  1. To create a Git alias for this command.
  2. To suggest using this command whenever another alias encounters this fatal error.
@kieranpotts kieranpotts added the feature Ideas for new or improved operations and behaviors label Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Ideas for new or improved operations and behaviors
Projects
None yet
Development

No branches or pull requests

1 participant