From 9ea4f9b6dc5b4ed1e6965aad43cc33247d546098 Mon Sep 17 00:00:00 2001 From: Laily Date: Sat, 5 Feb 2022 15:28:45 +0800 Subject: [PATCH] fix: modify gitconfig --- .zshrc | 1 + git/.gitconfig | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.zshrc b/.zshrc index 64b4bce..10e2ef8 100644 --- a/.zshrc +++ b/.zshrc @@ -103,6 +103,7 @@ bindkey "^f" forward-word # brew export HOMEBREW_NO_AUTO_UPDATE=true # 禁止 brew 每次安装软件都 upate +# go export GOPROXY=goproxy.cn export GOSUMDB="sum.golang.google.cn" diff --git a/git/.gitconfig b/git/.gitconfig index db5dc0e..47dea6c 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -14,6 +14,7 @@ ap = add -p br = branch pl = pull + pt = push origin --tags merge2 = "!f() { git checkout $1 && git merge $2 && git checkout -; }; f" bg = "!f() { git branch | grep $1; }; f" delbr = "!f(){ git branch -D `git branch | grep \"\b$1\"`; };f" @@ -23,3 +24,5 @@ [merge] tool = vimdiff + +