Browse Source

first commit

master
zhaohe 4 years ago
commit
3833c4551f
  1. 18
      import_project.sh

18
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
Loading…
Cancel
Save