aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-04-28 11:20:01 +0800
committertypebrook <typebrook@gmail.com>2020-04-28 11:20:01 +0800
commit87acbe3874bd852c50115ff5deb9e0e7e9e0924d (patch)
tree4c71c9ca6cc4ea461db07f06f312ebd1173518b9
parent75992172bfecf78bf78b2a6a6ab4f6361a2df33a (diff)
update
-rw-r--r--gitconfig2
-rwxr-xr-xtools/swap-protocol.bash (renamed from tools/swap-protocol.sh)2
2 files changed, 3 insertions, 1 deletions
diff --git a/gitconfig b/gitconfig
index 5418f98..cd29063 100644
--- a/gitconfig
+++ b/gitconfig
@@ -9,7 +9,7 @@
9 git stash apply stash@{1} && \ 9 git stash apply stash@{1} && \
10 git stash show -p | git apply -R && \ 10 git stash show -p | git apply -R && \
11 git stash drop stash@{1} 11 git stash drop stash@{1}
12 swapprotocol = !swap-protocol.sh 12 swapprotocol = !swap-protocol.bash
13 13
14[core] 14[core]
15 pager = tig 15 pager = tig
diff --git a/tools/swap-protocol.sh b/tools/swap-protocol.bash
index 03594f8..a70e7fe 100755
--- a/tools/swap-protocol.sh
+++ b/tools/swap-protocol.bash
@@ -14,3 +14,5 @@ git remote -v \
14 sed -E 's#https://([^/]+)/(.+)#git@\1:\2#' <<<$url | xargs git remote set-url $extra $remote 14 sed -E 's#https://([^/]+)/(.+)#git@\1:\2#' <<<$url | xargs git remote set-url $extra $remote
15 fi 15 fi
16done 16done
17
18git remote -v