0

I would like to know if there is a way to get a warning if I try to push directly to my remote master.

ThinkingStiff
  • 64,767
  • 30
  • 146
  • 239
griotspeak
  • 13,022
  • 13
  • 43
  • 54

1 Answers1

1

Git pre-push hooks is what you are looking for

You could use a client side hook or a server side hook depending on your needs.

All about hooks: http://git-scm.com/book/en/Customizing-Git-Git-Hooks

intuitivepixel
  • 23,302
  • 3
  • 57
  • 51
  • It seems that it is what I am looking for but is not official yet. http://stackoverflow.com/questions/13960839/why-doesnt-git-have-a-pre-push-hook – griotspeak Jan 14 '13 at 16:42