commit 3833c4551f09dc03cf8c2deb8c3c2fbe0c2dc69f Author: zhaohe <1013909206@qq.com> Date: Mon Jun 14 20:34:50 2021 +0800 first commit diff --git a/import_project.sh b/import_project.sh new file mode 100755 index 0000000..aa96266 --- /dev/null +++ b/import_project.sh @@ -0,0 +1,18 @@ + +############################################################ +#原工程地址 +SRC_GIT=git@192.168.1.3:OutsourcingProject/DisinfectionBox.git +#目标工程地址 +DES_URL=zwsd@192.168.1.3:DisinfectionBox/DisinfectionBox.git +############################################################ + +git clone --mirror ${SRC_GIT} ./transdir.git +cd transdir.git +git config --bool core.bare false +git remote rm origin +git remote add origin ${DES_URL} +git push --all origin -u +git push --tags origin +cd .. +/bin/rm -rf ./transdir.git +