From e194f1a407c1033696a9084225e2d24ead686727 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 18 May 2018 14:53:21 -0700 Subject: Add git stuff --- git-commit-template | 9 +++++++++ home.nix | 17 +++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 git-commit-template diff --git a/git-commit-template b/git-commit-template new file mode 100644 index 0000000..13f37b6 --- /dev/null +++ b/git-commit-template @@ -0,0 +1,9 @@ +# If applied, this commit will... + + +# Why was this change made? + + +# Any references to tickets, articles, etc? + + diff --git a/home.nix b/home.nix index d2af0cc..a2e9e72 100644 --- a/home.nix +++ b/home.nix @@ -38,6 +38,23 @@ pkgs.youtube-dl ]; + programs.git = { + enable = true; + userName = "Ben Sima"; + userEmail = "ben@bsima.me"; + extraConfig = '' +[push] + default = simple +[branch "master] + remote = upstream + merge = refs/heads/master +[remote] + pushDefault = origin +[commit] + template = ~/.config/nixpkgs/git-commit-template + ''; + }; + programs.bash = { enable = true; shellAliases = { -- cgit v1.2.3