-
Notifications
You must be signed in to change notification settings - Fork 2
/
git-review.txt
38 lines (30 loc) · 1.15 KB
/
git-review.txt
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
hosts
127.0.0.1 localhost
127.0.0.1 fitmgr-eureka
127.0.0.1 fitmgr-gateway
127.0.0.1 fitmgr-redis
127.0.0.1 fitmgr-mysql
127.0.0.1 fitmgr-zookeeper
127.0.0.1 fitmgr-zipkin
http://10.127.9.31:8090
http://10.127.9.31:20080/users/sign_in
ssh://[email protected]:20022/fitmgr/fitmgr-resourcecenter.git
http://10.127.9.31:8090
pip install git-review
mkdir -p /d/work/code/git
cd /d/work/code/git/
git clone ssh://[email protected]:20022/fitmgr/fitmgr.git
cd /d/work/code/git/fitmgr/fitmgr-visual/
git clone ssh://[email protected]:20022/fitmgr/fitmgr-resourcecenter.git
git remote remove gerrit
git remote add gerrit http://fchao:[email protected]:8090/fitmgr/fitmgr-resourcecenter.git
git config --list
git config user.name "chaofei"
git config user.email "[email protected]"
git config --list
git remote -v
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
gitdir=$(git rev-parse --git-dir)
chmod 771 ${gitdir}/hooks/commit-msg
scp -p -P 29418 [email protected]:hooks/commit-msg ${gitdir}/hooks/
git commit --amend --no-edit