简体   繁体   English

GitHub推送错误 - 'git media update'

[英]GitHub push error - 'git media update'

I've been working with the GitHub for Mac client. 我一直在使用GitHub for Mac客户端。 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. 从那时起,我一直无法将更改推送到我的在线仓库。

In the client I receive the message "The git media pre-push hook is out of date. Please run git media update " 在客户端我收到消息“git media pre-push hook已过期。请运行git media update

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]'" 当我尝试从终端推送时,我收到此消息“git:'media'不是git命令。请参阅'git --help'。错误:无法将某些引用推送到'[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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM