Skip to content

Commit

Permalink
Add git config
Browse files Browse the repository at this point in the history
  • Loading branch information
jared-mackey committed Jul 21, 2021
1 parent 7c54ccb commit 269a1e0
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
44 changes: 44 additions & 0 deletions git/gitconfig
@@ -0,0 +1,44 @@
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = Jared Mackey

[alias]
workprofile = !git config user.email \"jrmadm@divvypay.com\" && git config user.signingkey CCF3E715CED89BFA
homeprofile = !git config user.email \"jared@mackey.tech\" && git config user.signingkey 0C5ED94391419E3E
cleanup = !"git fetch -p && for branch in $(git branch -vv | grep ': gone]' | awk '{print $1}'); do git branch -D $branch; done"
up = pull
undo = reset HEAD~1 --mixed
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
ignored = !git ls-files -v | grep "^[[:lower:]]"
yeet = push --force-with-lease
anew = push -u origin HEAD

[commit]
gpgsign = true
[gpg]
program = gpg2
[rerere]
enabled = true
autoupdate = true
[fetch]
prune = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[pull]
rebase = true
autostash = true
[rebase]
autostash = true
[core]
excludesfile = /home/jared/.config/git/gitignore
editor = nvim
[push]
pushOption = merge_request.label=impact::low
pushOption = merge_request.create
[init]
defaultBranch = main
3 changes: 3 additions & 0 deletions git/gitignore
@@ -0,0 +1,3 @@
.envrc
.elixir_ls
packer_compiled.vim
11 changes: 11 additions & 0 deletions git/init.sls
@@ -0,0 +1,11 @@
gitconfig:
file.managed:
- name: /home/jared/.config/git/config
- source: salt://git/gitconfig
- user: jared
- makedirs: true

gitignore:
file.managed:
- name: /home/jared/.config/git/gitignore
- source: salt://git/gitignore
1 change: 1 addition & 0 deletions top.sls
@@ -1,5 +1,6 @@
base:
"*":
- git
- kitty
- nvim

0 comments on commit 269a1e0

Please sign in to comment.