Skip to content

Commit

Permalink
git: update git config
Browse files Browse the repository at this point in the history
  • Loading branch information
ShuN6211 committed Sep 29, 2024
1 parent a4744b4 commit 5c825a8
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
1 change: 1 addition & 0 deletions config/git/conf.d/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
user.conf
2 changes: 2 additions & 0 deletions config/git/conf.d/alias.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[alias]
graph = log --graph --date-order --all --pretty=format:'%h %Cred%d %Cgreen%ad %Cblue%cn %Creset%s' --date=short
5 changes: 5 additions & 0 deletions config/git/conf.d/core.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[core]
editor = vim

[init]
defaultBranch = main
2 changes: 2 additions & 0 deletions config/git/conf.d/ghq.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[ghq]
root = ~/workspace
16 changes: 5 additions & 11 deletions config/git/config
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
[init]
defaultBranch = main
[user]
email = [email protected]
name = Shun Makino
[core]
editor = emacs
[alias]
graph = log --graph --date-order --all --pretty=format:'%h %Cred%d %Cgreen%ad %Cblue%cn %Creset%s' --date=short
[ghq]
root = ~/workspace
[include]
path = conf.d/core.conf
path = conf.d/alias.conf
path = conf.d/user.conf
path = conf.d/ghq.conf

0 comments on commit 5c825a8

Please sign in to comment.