1
我一直在照看自己的生意,gitting一起,突然我得到這個錯誤只要我做什麼用git:ghooks,你從哪裏來的?
ghooks not found!
Make sure you have it installed on your "node_modules".
Skipping git hooks.
現在,我已經學會了什麼ghooks,我沒有意識到我在使用它們。顯然,他們已經失蹤了。
我不會用我的方式來使用ghooks的任何東西。據我所知,反正他們已被棄用。我只是想知道我能做些什麼來解決這個問題,以及我能做些什麼來讓它消失。下面的命令並沒有幫助:
npm install -g ghooks
也許無關,這個錯誤出現了大約在同一時間作爲另一個錯誤:
error: failed to push some refs to 'https://github.com/my_repository'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
我推了一些變化,一切都很好。我做了更多的改變,承諾並推動了這些,突然之間,我在我之前工作的分支之後?
因此,我很久以前就第一次提出了gitk,松鼠的當地分支巢穴顯然並不總是會導致我們的工作流程脫離軌道。這些東西有很多指導,所以我會去研究這些,並試圖讓我們回到正軌。我現在向你承認我的git罪,以防與gooks相關。也許這就是git告訴我我已經把事情拖了太久的方式。
TIA!
我強烈建議閱讀[Pro Git]的前三章(https://git-scm.com/book/en/v2)。似乎發生的事情是,不知怎的,一個取決於'ghooks'的提交鉤子被添加了,因爲'ghooks'不存在'git'抱怨。 – Pockets