Git(三)遠程操作

1.跟蹤分支與遠程跟蹤分支

跟蹤分支tracking branch(master用戶可寫)

遠程跟蹤分支 remote tracking branch(origin/master用戶只讀)

git clone origin/master

git fetch

git merge

git pull 

git add git commit  ->master

git push ->origin/master->master

2.遠程操作中的remote配置

remote配置

url 倉庫地址

fetch 如何配置遠程分支

push

refspec fetch的格式,指定引用定義的方式

3.遠程操作中的branch配置



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章