rrrrutdk
2012-12-24 10:04:44 +08:00
[网吧电脑] mkdir -p /media/usb/ && mount /dev/sdX /media/usb/
[网吧电脑] git clone --bare $PROJECT_URL $PROJECT_NAME
[网吧电脑] zip -q -r $PROJECT_NAME.zip $PROJECT_NAME
[网吧电脑] cp $PROJECT_NAME.zip /media/usb/
[网吧电脑] umount /media/usb/
[楼主电脑] mkdir -p /media/usb/ && mount /dev/sdX /media/usb/
[楼主电脑] unzip -q /media/usb/$PROJECT_NAME.zip -d /home/santa/Repositories/
[楼主电脑] cd $MY_LOCAL_COPY/
[楼主电脑] git remote add local /home/santa/Repositories/$PROJECT_NAME
[楼主电脑] git fetch local