You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using GitHub Desktop while working on Git
when click on commit button, getting below error
'error: cannot spawn .git/hooks/pre-commit: No such file or directory"
But if I use VS code instead of GitHub Desktop, it's going well for commit.
Release version
3.35(*64)
Operating system
Windows 10 Pro
Steps to reproduce the behavior
Change some files -> Commit to branch name -> error: cannot spawn .git/hooks/pre-commit: No such file or directory
Log files
No response
Screenshots
Additional context
I have already fixed this issue via this link
But when I commit to remote, I have to always move the pre-commit file from .git/hooks folder to another folder.
After commit, I have to repeat action again.
Is there any other good way without move the pre-commit file?
Thanks
The text was updated successfully, but these errors were encountered:
@Typhon0130 thanks for the issue. There are some known issues with GitHub Desktop and pre-commit hooks, often caused by environment setup. Are you using Husky? There are some workarounds that have been shared in #12562 to get Husky working, like #12562 (comment).
Thank you for your issue!
We haven’t gotten a response to our questions above. With only the information that is currently in the issue, we don’t have enough information to take action. We’re going to close this but don’t hesitate to reach out if you have or find the answers we need. If you answer our questions above, this issue will automatically reopen.
The problem
I am using GitHub Desktop while working on Git
when click on commit button, getting below error
'error: cannot spawn .git/hooks/pre-commit: No such file or directory"
But if I use VS code instead of GitHub Desktop, it's going well for commit.
Release version
3.35(*64)
Operating system
Windows 10 Pro
Steps to reproduce the behavior
Change some files -> Commit to
branch name
->error: cannot spawn .git/hooks/pre-commit: No such file or directory
Log files
No response
Screenshots
Additional context
I have already fixed this issue via this link
But when I commit to remote, I have to always move the pre-commit file from .git/hooks folder to another folder.
After commit, I have to repeat action again.
Is there any other good way without move the pre-commit file?
Thanks
The text was updated successfully, but these errors were encountered: