1
在Windows 10使用Git的Bash意外當試圖在我的分支提交的工作,我做的事:-d此時Git中的Bash
git add .
git commit -m "commit msg"
後者命令給出了這樣的消息:
-d is unexpected at this time
運行GIT_TRACE=2 git commit -m "msg"
後,我得到如下:
`08:25:51.133862 git.c:371 trace: built-in: git 'commit' '-m'`
`08:25:51.188903 run-command.c:350 trace: run_command: '.git/hooks/pre-commit'`
`-d was unexpected at this time.`
我以前從來沒有遇到過這種,它只是發生RECE對我目前的項目而言,這意味着我不知道是什麼原因導致了這一點,或者我做了什麼導致這一點。直到最近幾天,我才能做得很好。
我該如何解決這個問題?
什麼*精確*命令拋出上述錯誤? – PeeHaa
輸入'git commit -m'commit msg「',然後按回車,出現上面的錯誤... – ARajigah
圖片中是否有別名?在命令列表中沒有'-d' ... – anishsane