1
0
mirror of https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git synced 2025-09-15 09:45:58 +03:00

refactored .gitconfig

This commit is contained in:
xnm
2024-02-21 01:50:22 +02:00
parent 90f13fd69f
commit 653d5325e1
10 changed files with 53 additions and 11 deletions

View File

@@ -12,4 +12,4 @@ aliases:
# The path to a unix socket through which send HTTP connections. If blank, HTTP traffic will be handled by net/http.DefaultTransport.
http_unix_socket:
# What web browser gh should use when opening URLs. If blank, will refer to environment.
browser: qutebrowser
browser: brave

View File

@@ -1,9 +1,11 @@
[user]
email = artem.shv@proton.me
name = xnm
[credential "https://github.com"]
helper =
helper = !/run/current-system/sw/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/run/current-system/sw/bin/gh auth git-credential
[includeIf "gitdir:~/projects/"]
path = ~/projects/.gitconfig.personal
[includeIf "gitdir:~/work/"]
path = ~/work/.gitconfig.work
[core]
excludesfile = ~/.gitignore
[gpg]
format = ssh

17
home/.ssh/config Normal file
View File

@@ -0,0 +1,17 @@
Host github.com-xnm1
HostName github.com
User git
IdentityFile ~/.ssh/github
AddKeysToAgent yes
Host github.com-artemplummy
HostName github.com
User git
IdentityFile ~/.ssh/work
AddKeysToAgent yes
Host bitbucket.org-artemplummy
HostName bitbucket.org
User git
IdentityFile ~/.ssh/work
AddKeysToAgent yes

View File

@@ -0,0 +1,10 @@
[user]
email = artem.shv@proton.me
name = xnm
signingkey = ~/.ssh/github.pub
[github]
user = "XNM1"
[core]
sshCommand = "ssh -i ~/.ssh/github"

13
home/work/.gitconfig.work Normal file
View File

@@ -0,0 +1,13 @@
[user]
email = artem.shevchenko@plummygames.com
name = artemplummy
signingkey = ~/.ssh/work.pub
[github]
user = "artemplummy"
[bitbucket]
user = "artemplummy"
[core]
sshCommand = "ssh -i ~/.ssh/work"