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
  • 63,812
  • 29
  • 142
  • 238
griotspeak
  • 12,842
  • 13
  • 41
  • 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,198
  • 3
  • 54
  • 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