我在pre-push钩子中添加了类似的东西:
pre-push
gs0=$(git status) pip-dump gs1=$(git status) if [ "gs0" != "gs1" ] then git commit -m "pip-dump" fi
(这是更新我的点数要求文件)
看起来推送不是推动新提交,而是HEAD在脚本开头的时候.
如何解决?
git githooks
git ×1
githooks ×1