fix upload2hgf.sh
Browse files- upload2hgf.sh +3 -2
upload2hgf.sh
CHANGED
@@ -5,8 +5,9 @@ find ckpt -type f | xargs -I{} cp {} .
|
|
5 |
git lfs track events.out.*
|
6 |
git lfs track pytorch_model.bin
|
7 |
tmp_branch=hgf-`uuidgen`
|
8 |
-
git checkout -b tmp_branch
|
9 |
git add .
|
10 |
git commit -am 'update model'
|
11 |
-
git push -f hgf tmp_branch:main
|
12 |
git checkout -
|
|
|
|
5 |
git lfs track events.out.*
|
6 |
git lfs track pytorch_model.bin
|
7 |
tmp_branch=hgf-`uuidgen`
|
8 |
+
git checkout -b $tmp_branch
|
9 |
git add .
|
10 |
git commit -am 'update model'
|
11 |
+
git push -f hgf $tmp_branch:main
|
12 |
git checkout -
|
13 |
+
git branch -D $tmp_branch
|