git-5_Git 环境建立(environment setup)
程序员文章站
2022-05-02 20:03:48
...
$git –version #check if the git is installed
$git clone ssh://gerrit.ericsson.se:29418/ers/ers #create repo
$cd ers
$git checkout –b master remotes/origin/master or #create one branch
$git branch -t master #create one private track branch
$git branch -v #check all local branch and the head information
$git branch –avl #check all branch and head info
$git remote –v #check remote repository
$git checkout master #shift to master branch
$ git submodule update –-init #init submodule, do it when switch branch
$ scp -p -P 29418 gerrit.ericsson.se:hooks/commit-msg .git/hooks/ #create gerrit hook, do it when create new repo
上一篇: 关于Swing的六个谎言
下一篇: macOS系统如何设置环境变量