From 8df096317941499fb28a4f51b11ef21bfe70ac7d Mon Sep 17 00:00:00 2001 From: monlor Date: Tue, 3 Mar 2020 21:06:17 +0800 Subject: [PATCH] 2020-03-03 21:06:17 --- tools/gitsync.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tools/gitsync.sh b/tools/gitsync.sh index fabd3f3..d3a21e1 100755 --- a/tools/gitsync.sh +++ b/tools/gitsync.sh @@ -112,7 +112,6 @@ github() { # sed -i $args "s#^mburl.*#mburl=\"$github_raw\"#" ./install.sh # sedsh "s" "^mburl.*" "mburl=\"$github_raw\"" "./install.sh" - localgit git remote rm origin git remote add origin $github_url git push origin master @@ -122,7 +121,6 @@ coding() { # sed -i $args "s#^mburl.*#mburl=\"$coding_raw\"#" ./install.sh # sedsh "s" "^mburl.*" "mburl=\"$coding_raw\"" "./install.sh" - localgit git remote rm origin git remote add origin $coding_url git push origin master @@ -143,17 +141,16 @@ reset() { } case $1 in - all) - github - coding - ;; github) + localgit github ;; coding) + localgit coding ;; push) + localgit github coding ;;