diff options
author | typebrook <typebrook@gmail.com> | 2020-04-28 11:20:01 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-04-28 11:20:01 +0800 |
commit | 87acbe3874bd852c50115ff5deb9e0e7e9e0924d (patch) | |
tree | 4c71c9ca6cc4ea461db07f06f312ebd1173518b9 | |
parent | 75992172bfecf78bf78b2a6a6ab4f6361a2df33a (diff) |
update
-rw-r--r-- | gitconfig | 2 | ||||
-rwxr-xr-x | tools/swap-protocol.bash (renamed from tools/swap-protocol.sh) | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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 |
16 | done | 16 | done |
17 | |||
18 | git remote -v | ||