w32zhong commited on
Commit
5bbd6ff
1 Parent(s): 173cff3

fix upload2hgf.sh

Browse files
Files changed (1) hide show
  1. 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