Displaying 1 result from an estimated 1 matches for "first_commit".
2009 Sep 22
1
new git hook to be installed
...er*, that user must push
+# a tag whose name starts with "git-control-" and whose one-line message
+# matches exactly one of the listed commands.
+#
+# For example, to temporarily allow someone to push a bad-whitespace
+# commit, with the settings implied above, you might do this:
+#
+# first_commit=$(git log --reverse --pretty=%H |head -1)
+# git tag -m 'git config hooks.allowbadwhitespace true' \
+# git-control-$(date +%F-%H-%M-%S.%N) $first_commit
+#
+# Note that we're not tagging HEAD, but rather the very first commit
+# in the repository, in an attempt not to clutter up...