Git推不起作用 - " pre-receive hook拒绝"?

时间:2018-03-12 02:39:53

标签: git github version-control git-push

我正在尝试将更改从我的遥控器推送到我的原点。它不起作用,说(pre-receive hook declinedfailed to push some refs to [repository URL]。它还说文件exceeds Github's file size limit.但是,我已将此文件移出原始文件夹(作为远程存储库的文件夹),因此它甚至不应该被推送的部分文件。如果我做

git ls-tree -r master --name-only

此特定文件仍显示正在跟踪,即使原始文件夹中不再存在该文件。我在这个文件上也做了git -rm --cached,但没有用。如果我做

git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch [This file]'

它说Cannot rewrite branches: You have unstaged changes. Additionally, your index contains uncommitted changes.

0 个答案:

没有答案
相关问题