Skip to content

Commit

Permalink
Change git config by symlinking to include
Browse files Browse the repository at this point in the history
  • Loading branch information
2JS committed Feb 14, 2024
1 parent bd02583 commit 349a4b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions git/gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
gpgsign = true
[tag]
forceSignAnnotated = true
[core]
excludesFile = ~/.setup/git/gitignore
[rebase]
autostash = true
[init]
Expand Down
3 changes: 2 additions & 1 deletion git/setup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh

if [ "$GITHUB_ACTIONS" != "true" ]; then
ln -s $SETUP_ROOT/git/gitconfig ~/.gitconfig
git config --global --add include.path $SETUP_ROOT/git/gitconfig
git config --global core.excludesfile $SETUP_ROOT/git/gitignore
fi

0 comments on commit 349a4b8

Please sign in to comment.