更新遠(yuǎn)程文件到本地方式一
查看遠(yuǎn)程倉庫
git remote -v
從遠(yuǎn)程獲取最新版本到本地
git fetch origin tmp
比較遠(yuǎn)程分支和本地分支
git log -p aaa origin/tmp
合并遠(yuǎn)程分支到本地
git merge origin/tmp
遠(yuǎn)程文件到本地方式二,在本地建臨時(shí)分支,合并后刪除文章來源:http://www.zghlxwxcb.cn/news/detail-803132.html
查看遠(yuǎn)程倉庫
git remote -v
從遠(yuǎn)程獲取最新版本到本地
git fetch origin master:tmp
比較遠(yuǎn)程分支和本地分支的區(qū)別
git diff tmp
合并遠(yuǎn)程分支到本地
git merge tmp
使用pull更新 git pull origin aaa
文章來源地址http://www.zghlxwxcb.cn/news/detail-803132.html
到了這里,關(guān)于【git】git更新遠(yuǎn)程分支到本地的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!