首頁  >  文章  >  後端開發  >  git clone一個分支後如何更新提交

git clone一個分支後如何更新提交

PHP中文网
PHP中文网原創
2017-03-30 10:59:022815瀏覽

git clone -b feature-notice 

克隆這個分支後 git branch,在feature-notice下,現在想pull/fetch線上最新的程式碼 ,修改後 commit /push

具體如何做? 直接git pull / fetch 都不行,還有commit / push

git clone -b feature-notice 

克隆這個分支後git branch,在feature-notice下,現在想pull/fetch線上最新的程式碼,修改後commit /push

具體如何做? 直接git pull / fetch 都不行,還有commit / push

直接git pull 不行,是怎麼個不行?提示什麼

樓主 你git clone的是http協定的,所以要輸入密碼,可以用ssh協定的。

以上就是git clone一個分支後如何更新提交?的內容,更多相關內容請關注PHP中文網(www.php.cn)!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn