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 - commit 卡在 pre-commit 階段 #83

Open
NaClYen opened this issue Oct 13, 2021 · 0 comments
Open

git - commit 卡在 pre-commit 階段 #83

NaClYen opened this issue Oct 13, 2021 · 0 comments
Assignees
Labels

Comments

@NaClYen
Copy link
Owner

NaClYen commented Oct 13, 2021

image

錯誤狀況

無論使用 TortoiseGit or VSCode 內建的 source control or command line 都會卡住無法 commit

處理

暫時刪除 ./git/hooks/pre-commit

其內容如下:

#!/bin/sh
# husky

# Created by Husky v4.3.0 (https://github.com/typicode/husky#readme)
#   At: 2021/10/5 上午11:37:25
#   From: undefined (https://github.com/typicode/husky#readme)

. "$(dirname "$0")/husky.sh"

他是來自 typicode/husky 的內容, 由我使用的 react-electron 模板引入

看 husky 的定義, 應該不影響核心內容, 就先暫時閉上眼睛推上去了

顯然其他人也有 相同的困擾

很哈士奇

意外學到哈士奇的英文(?)

tags: git pre-commit hangs
@NaClYen NaClYen added the git label Oct 13, 2021
@NaClYen NaClYen self-assigned this Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant