From b94b207b352ba78fe730c9d9383cdba359f58b86 Mon Sep 17 00:00:00 2001 From: nishigori Date: Tue, 16 Apr 2024 00:31:31 +0900 Subject: [PATCH] more git configure --- .gitconfig | 7 ++++--- .secrets/.gitsecret.example | 4 ++++ .zshrc | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitconfig b/.gitconfig index 1445982..5ad0cf1 100644 --- a/.gitconfig +++ b/.gitconfig @@ -128,9 +128,10 @@ process = git-lfs filter-process required = true -[user] - name = nishigori - email = nishigori.tak@gmail.com +# user section should written on .gitsecret +#[user] +# name = nishigori +# email = # NOTE: Enable when GitHub HTTPS protocal is gone (use SSH protocol) # diff --git a/.secrets/.gitsecret.example b/.secrets/.gitsecret.example index 1c4b527..2abd0cb 100644 --- a/.secrets/.gitsecret.example +++ b/.secrets/.gitsecret.example @@ -15,6 +15,10 @@ [credential] helper = +[user] + user = + email = + [github] user = diff --git a/.zshrc b/.zshrc index 9129a45..cdd3c2b 100644 --- a/.zshrc +++ b/.zshrc @@ -124,7 +124,7 @@ alias gtree='git tree | tree --fromfile | bat -p' alias gt='gtree' alias h='git hist origin/$(git default)^..@' alias hn='git hist --name-only origin/$(git default)^..@' -alias pu='git push -u origin $(git symbolic-ref --short HEAD)' +alias pu='git push -u origin $(git branch --show-current)' alias pf='git push --force-with-lease --force-if-includes' alias pushu='git push -u origin $(git symbolic-ref --short HEAD)' alias pushf='git push --force-with-lease --force-if-includes'