$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
git-5_Git 环境建立(environment setup)
最新推荐文章于 2023-03-19 09:38:35 发布