Skip to content

Commit

Permalink
Adding git config (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
mishok13 authored Apr 27, 2024
1 parent cd08b4d commit d93029c
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
33 changes: 33 additions & 0 deletions config/git/.config/git/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[includeIf "gitdir:~/work/**"]
path = ~/.config/git/config.work

[includeIf "gitdir:~/nonwork/**"]
path = ~/.config/git/config.nonwork

[github]
user = mishok13

[init]
defaultBranch = main

[user]
useConfigOnly = true

[merge]
conflictStyle = zdiff3
autostash = true

[pull]
autostash = true

[rebase]
autostash = true

[commit]
gpgsign = true

[gpg]
format = ssh

[gpg "ssh"]
program = "/opt/1Password/op-ssh-sign"
6 changes: 6 additions & 0 deletions config/git/.config/git/config.nonwork
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[user]
name = Andrii Mishkovskyi
email = [email protected]

[include]
path = ~/.config/git/sensitive.nonwork
13 changes: 13 additions & 0 deletions config/git/.config/git/ignore.linux
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

0 comments on commit d93029c

Please sign in to comment.