#20953: git push -f in docs needs a stern warning --------------------------------------+------------------------------------ Reporter: EvilDMP | Owner: nobody Type: Cleanup/optimization | Status: new Component: Documentation | Version: master Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 --------------------------------------+------------------------------------
Comment (by akaariai): It seems the attached pre-push script can be used to prevent force pushing (and accidental pushing/deletion of upstream branches, too). Requirements are: 1) git 1.8.2 or later 2) change the pre-push variable django_origin to your django/django's remote name (for me, upstream). 3) place the pre-push script (with that name) to .git/hooks/ **Do not test this against django/django.** This is a quick hack, so I don't trust it enough for that. You can however test it against your own github branches by changing the django_origin name. -- Ticket URL: <https://code.djangoproject.com/ticket/20953#comment:10> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.ea1995f2511b9c5d978a405074992f0f%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.