首页 笔记 图片 查字 
所属分类:null
浏览:248
内容:

git pull 相当于是从远程获取最新版本并merge到本地

git fetch 相当于是从远程获取最新到本地,但是不会自动merge


命令1、

git pull 将与本地当前分支同名的远程分支 拉取到 本地当前分支上

[root@localhost]  git pull 


命令2、

git pull origin <远程分支名>:<本地分支名>

[root@localhost]  git pull origin test:test


命令3、

git pull origin <远程分支名>

[root@localhost]  git pull origin test