{{ .Summary | plainify | safeHTML }} {{ if .Truncated }} … {{ end }}
+diff --git a/content/posts/dotfiles-repo.md b/content/posts/dotfiles-repo.md deleted file mode 100644 index 0c3a622..0000000 --- a/content/posts/dotfiles-repo.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: "Dotfiles Repo" -date: 2019-11-08T10:49:13-06:00 -draft: true ---- - diff --git a/content/posts/git-tips-global-precommit-hook.md b/content/posts/git-tips-lint-test-precommit-hook.md similarity index 58% rename from content/posts/git-tips-global-precommit-hook.md rename to content/posts/git-tips-lint-test-precommit-hook.md index a39f727..3490b54 100755 --- a/content/posts/git-tips-global-precommit-hook.md +++ b/content/posts/git-tips-lint-test-precommit-hook.md @@ -1,19 +1,10 @@ --- -title: "Git Tips - Global Pre-commit Hooks" +title: "Git Tips - Lint + Test Pre-commit Hook" date: 2020-01-01T21:00:39Z -tags: [git, testing, bash] +tags: [git, bash, ] --- -[Git hooks][1] are a feature of the Git VCS that allow you to fire off custom logic on the client side when you take -actions in your repository. These are shell scripts in the `.git/hooks/` directory of your repository, but they can also - exist in your home directory at `~/.githooks/`. - -Any hooks found in `~/.githooks/` are executed globally, this makes it easy to setup a custom workflow that is consistent -across your entire machine. - -## Automatically lint and test on commit - -One of my favorite hooks is the `~/.githooks/pre-commit` hook that auto runs test and lint commands from a `makefile` or +One of my favorite inventions is a `pre-commit` hook that auto runs test and lint commands from a `makefile` or `package.json` if they're found: ```sh @@ -44,4 +35,3 @@ regular shell. If the test or lint command fails then the `git commit` command fails. If I absolutely need to commit something in spite of the lint/test results I can do `git commit --no-verify` to skip the `pre-commit` hook. -[1]: https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks "Git hooks" diff --git a/content/posts/init-systems-101.md b/content/posts/init-systems-101.md deleted file mode 100644 index e6af601..0000000 --- a/content/posts/init-systems-101.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: "Init Systems 101" -date: 2019-11-08T10:50:17-06:00 -draft: true ---- - diff --git a/content/posts/ssh-for-fun-and-profit.md b/content/posts/ssh-for-fun-and-profit.md deleted file mode 100644 index 6f54c01..0000000 --- a/content/posts/ssh-for-fun-and-profit.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: "SSH For Fun and Profit" -date: 2019-11-08T10:48:47-06:00 -draft: true ---- - diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 43ca626..f8713ba 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -10,7 +10,7 @@
{{ .Summary | plainify | safeHTML }} {{ if .Truncated }} … {{ end }}
+