GitHub推送错误 - 'git media update' [英] GitHub push error - 'git media update'
问题描述
我一直在使用适用于Mac客户端的GitHub。它在两个月内工作得很好。昨天,在成功提交和推送后,我的客户关闭了自己,然后重新启动。从那时起,我一直无法将更改推送到我的在线回购站中。
I've been working with the GitHub for Mac client. It has worked perfectly fine for two months. Yesterday, after a successful commit and push, my client closed itself then restarted. Since then I have been unable to push changes to my online repo.
在客户端,我收到消息git media预推送挂钩已过期。运行 git media update
In the client I receive the message "The git media pre-push hook is out of date. Please run git media update
"
当我尝试从终端推送时,收到此消息git:'media'不是一个git命令,请参阅'git --help'。error:未能将一些文件推送到'[my GitHub repo URL.git]'
When I try to push from terminal I receive this message "git: 'media' is not a git command. See 'git --help'. error: failed to push some refs to '[my GitHub repo URL.git]'"
一种方法来解决这些错误,并让我的本地回购再次工作?我真的不想创建一个新的本地回购,如果可能的话。
Is there a way to resolve these errors and get my local repo working again? I'd really rather not create a new local repo if at all possible.
推荐答案
您的存储库。我还没有弄清楚什么软件对此负责,但是你想从你的项目根目录运行的命令是......
It seems like something has added a hook to your repository. I haven't figured out what software is responsible for this, but command you want to run from your project root is ...
mv .git/hooks/pre-push .git/hooks/pre-push.sample
这篇关于GitHub推送错误 - 'git media update'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!