1、git clone huyongming@188.188.77.65:/work/projects/mirrorha 下载源代码
2、cd mirrorha/
3、git branch -a查看所有分支
4、 git checkout origin/resourcegroup 切换到origin/resourcegroup
5、 git checkout -b resourcegroup 本地建立分支,并立即切换过去
6、 git branch
7、vim .git/config 修改配置
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = huyongming@188.188.77.65:/work/projects/mirrorha
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "resourcegroup"]
remote = origin
merge = refs/heads/resourcegroup
8、git pull 更新下载数据