From 487de2c7474f1ce67a0c244c86979226f5e85d5d Mon Sep 17 00:00:00 2001 From: zhaohe <1013909206@qq.com> Date: Mon, 14 Jun 2021 20:38:18 +0800 Subject: [PATCH] add README.md --- README.md | 7 +++++++ import_project.sh | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..16b9205 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +#Usage + +``` +1. 创建好新工程的git地址 +2. 执行下面指令 + ./import_project.sh 原先git地址 目标git地址 +``` \ No newline at end of file diff --git a/import_project.sh b/import_project.sh index aa96266..d69d5cc 100755 --- a/import_project.sh +++ b/import_project.sh @@ -1,9 +1,9 @@ ############################################################ #原工程地址 -SRC_GIT=git@192.168.1.3:OutsourcingProject/DisinfectionBox.git +SRC_GIT=$1 #目标工程地址 -DES_URL=zwsd@192.168.1.3:DisinfectionBox/DisinfectionBox.git +DES_URL=$2 ############################################################ git clone --mirror ${SRC_GIT} ./transdir.git