简体   繁体   中英

GitHub push error - 'git media update'

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.

In the client I receive the message "The git media pre-push hook is out of date. Please run 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]'"

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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