H
H
happyer2019-02-10 19:27:06
git
happyer, 2019-02-10 19:27:06

How to fix bug with push in git?

Hello
, I'll be brief
when pushing, an error pops up
push failed on refs/heads/master pre-receive hook declined
what to do about it?
i googled!!!! honestly!!!! but I didn’t understand anything
ps maybe it will be easier for someone from this screen5c6052a3dde20695431400.jpeg

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vladimir, 2019-02-10
@happyer

The server you are pushing to rejects your push, if it is a github, you may have included too large a file in the repository, if this is someone else's repository, ask the person who administers it.
https://stackoverflow.com/questions/7986139/git-er...
In my case, it's because I accidentally added a giant file to my uncommitted push

D
Denis, 2019-02-10
@Norkotik

Made so that the master is not pushed, a common practice when working in a team.
You make a branch for yourself, you commit there, through a pull request you merge into the master ...

V
Vitsliputsli, 2019-02-10
@Vitsliputsli

push failed on refs/heads/master pre-receive hook declined
what to do about it ?
i googled!!!! honestly!!!! but did not understand anything

Come on? The very first link in google suggests contacting the author of the rap for clarification why the hooks configured by him reject the push, and at the same time it’s not bad when the hook returns the reason for the refusal.
Perhaps pushing is generally prohibited, only merge, find out from the author of the turnip.

R
roman_tatusko, 2021-04-09
@roman_tatusko

I have the same problem although the command can push to do

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question