question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error: cannot spawn .git/hooks/pre-commit: No such file or directory

See original GitHub issue

Describe the bug

when click on commit button, getting below error

'error: cannot spawn .git/hooks/pre-commit: No such file or directory"

Version & OS

Windows 10 Pro

GitHub Deskotp Version 2.9.10 (x64)

Steps to reproduce the behavior

1.Open git hut desktop version 2. Changes any one file 3. Enter commit text 4. Click on Commit button

Expected behavior

Write a clear and concise description of what you expected to happen.

Actual behavior

Write a clear and concise description of what actually happened.

Screenshots

Add screenshots to help explain your problem, if applicable.

Logs

Attach your logs by opening the Help menu and selecting Show Logs..., if applicable.

Additional context

Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
hokrancommented, Mar 4, 2022

Hi Steve, Its working fine after removing pre-commit hook in .git/hooks. Thanks a lot for your help

1reaction
stevewardcommented, Mar 4, 2022

@hokran are you wanting to use pre-commit hooks in this repository? If not, you can remove the pre-commit hook in .git/hooks. If you are wanting to use a pre-commit hook it’d be helpful if you could share the contents of .git/hooks/pre-commit so that we could see what the issue might be there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
Hi, I'm using a windows machine. When I run standard-version I get: error: cannot spawn .git/hooks/pre-commit: No such file or directory.
Read more >
Share - Stack Overflow
I'm using SourceTree and git LFS and had a similar issue: cannot spawn .git/hooks/pre-push . The fix was to delete the pre-push file...
Read more >
Thursday, August 22, 2019 - Tips, Tricks and Tools
Git error: cannot spawn .git/hooks/post-commit: No such file or directory. This error could happen when on the Windows.
Read more >
error: cannot spawn git: No such file or directory
> repository it must blow up some internal command line limits on cygwin. Good point, but are you sure you're using Git for...
Read more >
Error cannot spawn git hooks pre push No error
Cannot run git hooks pre commit No such file or directory ... Go to.git/hooks directory and remove pre-commit file, as its trying to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found