欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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
相关标签: git environment