Warning: Undefined array key "autolink_title_attribute_when_using_custom_url" in
/homepages/6/d87875107/htdocs/roos/wordpress/wp-content/plugins/simple-tags/inc/class.client.autolinks.php on line
501
Warning: Undefined array key "autolink_title_attribute_when_using_custom_url" in
/homepages/6/d87875107/htdocs/roos/wordpress/wp-content/plugins/simple-tags/inc/class.client.autolinks.php on line
501
Warning: Undefined array key "autolink_title_attribute_when_using_custom_url" in
/homepages/6/d87875107/htdocs/roos/wordpress/wp-content/plugins/simple-tags/inc/class.client.autolinks.php on line
501
Warning: Undefined array key "autolink_title_attribute_when_using_custom_url" in
/homepages/6/d87875107/htdocs/roos/wordpress/wp-content/plugins/simple-tags/inc/class.client.autolinks.php on line
501
Warning: Undefined array key "autolink_title_attribute_when_using_custom_url" in
/homepages/6/d87875107/htdocs/roos/wordpress/wp-content/plugins/simple-tags/inc/class.client.autolinks.php on line
501
Warning: Undefined array key "autolink_title_attribute_when_using_custom_url" in
/homepages/6/d87875107/htdocs/roos/wordpress/wp-content/plugins/simple-tags/inc/class.client.autolinks.php on line
501
Warning: Undefined array key "autolink_title_attribute_when_using_custom_url" in
/homepages/6/d87875107/htdocs/roos/wordpress/wp-content/plugins/simple-tags/inc/class.client.autolinks.php on line
501
Warning: Undefined array key "autolink_title_attribute_when_using_custom_url" in
/homepages/6/d87875107/htdocs/roos/wordpress/wp-content/plugins/simple-tags/inc/class.client.autolinks.php on line
501
After a flurry of accidental pushes direct to the main branch at work, I decided we need a technical solution. The obvious answer would be to use GitLab‘s protected branches, but that’s not practical at our org. Next best: a #githook to check the branch one is committing to, and have the user confirm or cancel as the case may be.
Continue reading “Collect a keypress in a bash githook”Like this:
Like Loading...