git服务器项目更新至本地

查看远程分支

$git remote -v

origin ssh://wuhan@192.168.1.46:29418/ssm_project.git (fetch)
origin ssh://wuhan@192.168.1.46:29418/ssm_project.git (push)

从远程获取最新代码到本地

$ git fetch origin master:temp

比较本地仓库与下载的分支

$git diff temp

比较完成之后

git merge tmp 

最后pull

git pull



原文地址:https://www.cnblogs.com/wuhanbk/p/9851121.html