This is Git tools that helping us develop more conveniently.
Translations:
- Clone project by group name
- Switch branch of a directory
-
Generate
SSH KEY
and put it into theSSH KEYS
on the Gitlab.git config --global user.name "yourname" git config --global user.email "youremail" ssh-keygen -t rsa -C “youremail”
-
In Gitlab
Setting->Access Tokens
and generate an only read token. -
Usage:
clone projects
git_tools -t cg -addr <ip:port> -token RmMtvCTdmnsmZZcjV9Sb -group IOT2 -out D:\tmp
clone projects and switch branch
git_tools -t cg -addr <ip:port> -token RmMtvCTdmnsmZZcjV9Sb -group IOT2 -out [D:\tmp] -branch [dev-1.0.0]
switch branch
git_tools -t b -dir D:\tmp -branch dev-1.0.0