-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathupload.sh
31 lines (30 loc) · 1.39 KB
/
upload.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
############## pull from master and save/sync current work ##############
### 'myrepo' is the remote repo name 'origin' will be used for mmdet origin repo pull ###
PSWD=asdf2345
bash download.sh $1
git add .
git commit -m "$2"
git checkout master
git pull myrepo master
#git pull myrepo master
git checkout $1
git rebase master
# git add .
# git commit -m "$2 rebase master"
git push myrepo $1
# git push myrepo $1
git checkout master
git merge $1 # cherry pick!
git add .
############## name and commit current work and push ##############
git commit -m "$2"
# git checkout -b 'new'
git push myrepo master
# git push myrepo master
git checkout $1
#git pull my
#-u myrepo master
#rsync -avzm --prune-empty-dirs --include="*/" --include="*.py" --exclude="*" ~/Dropbox/CVPR2021_NewDet3D/Home/Det3D ~/Dropbox/CVPR2021_NewDet3D/Ti3ssd/
# rsync -avzm --prune-empty-dirs --include="*/" --include="*.py" --exclude="*" ~/Dropbox/CVPR2021_NewDet3D/Home/Det3D ~/Dropbox/CVPR2021_NewDet3D/Ti5/
# sshpass -p $PSWD rsync -avzm --prune-empty-dirs --include="*/" --include="*.py" --exclude="*" ~/Dropbox/CVPR2021_LidarPerceptron/Home/OpenLidarPerceptron [email protected]:~/Dropbox/CVPR2021_LidarPerceptron/Ti5/
# sshpass -p $PSWD rsync -avzm --prune-empty-dirs --include="*/" --include="*.py" --exclude="*" ~/Dropbox/CVPR2021_LidarPerceptron/Home/OpenLidarPerceptron [email protected]:~/Dropbox/CVPR2021_LidarPerceptron/Ti3ssd/