-
Notifications
You must be signed in to change notification settings - Fork 17
/
update.sh
44 lines (34 loc) · 990 Bytes
/
update.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
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# created by Peter at 2019/7/10
#
# echo "=============================="
# echo "====removing useless files===="
# echo "=============================="
# rm -rf .git
# rm *~
# rm *.log
# rm *.aux
# rm *.out
# echo "================================"
# echo "==reinitialize git repository==="
# echo "================================"
# git init
# git remote add origin https://github.com/Chiang97912/DGCNN.git
echo "=============================="
echo "======committing changes======"
echo "=============================="
git add *
git add .gitignore
git stage *
git commit -am "$(date "+%Y-%m-%d %H:%M:%S")" >> commit.log
# git commit -a -m "refresh everything" >> commit.log
git gc >> git-gc.log
echo "=============================="
echo "=====pushing, please wait====="
echo "=============================="
git push --force origin HEAD
git status
echo "=============================="
echo "========all tasks done========"
echo "=============================="
rm *.log