forked from orangeSi/GSSplayground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
git.rm.sh
28 lines (24 loc) · 638 Bytes
/
git.rm.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
if [ "$#" -ne 2 ];
then
echo "sh $0 <git rm file > <git commit -m>"
exit
fi
set -vex
files=$1
commit=$2
git rm -r --cached $files
git commit -m "$commit"
git push -u origin master
exit
## for first use git
#git init
#git add *
#git commit -m 'update'
#git remote add origin https://github.com/orangeSi/ClustersPloter.git
#git push -u origin master
#git pull origin master
# config password for git
#git config credential.helper store, store mean forver remember password. git config credential.helper 'cache –timeout=3600' for temperate remember password
# git push orgin master
# ......
# after this will remember the password