Skip to content

Commit

Permalink
add git ssh key
Browse files Browse the repository at this point in the history
  • Loading branch information
BrightXiaoHan committed Nov 30, 2024
1 parent 6f983ac commit 4891812
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions general/gitconfig
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
[user]
email = [email protected]
name = BrightXiaoHan
[credential]
helper = store

[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[credential "helperselector"]
selected = manager
[credential "http://39.105.167.2:8888"]
provider = generic
[credential "https://gitee.com"]
provider = generic

[core]
# Use SSH instead of HTTPS for URLs starting with 'git:'
sshCommand = ssh -i ~/.ssh/id_rsa_git -F ~/.ssh/config

[url "[email protected]:"]
# Automatically convert HTTPS GitHub URLs to SSH
insteadOf = https://github.com/

[alias]
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all
Expand Down

0 comments on commit 4891812

Please sign in to comment.