1

How can I remove my /~.ssh if I've lost it? I have to join a new project but if I am trying to commit, add or push anything I get an error:

Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue.

Is there any git comand to reset all my user settings and start using git like on a new computer?

1
  • 1
    Welcome to Stack Overflow. It looks like the problem is not with ~/.ssh, but possibly with a git command not finishing properly. Does the .git directory in the project have an index.lock file in it? Commented Nov 25, 2019 at 2:24

1 Answer 1

0

This is generally seen with local commands (git add), which do not involve any network communication, and won't use SSH or HTTPS at all.
See here for instance.

If rm -f .git/index.lock is not enough, try at least to reboot, and to repeat your command right after reboot, to ensure no other process is preempting any local Git resource.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.