git更新远程仓库代码到本地

  1 使用命令查看连接的远程的仓库

    git remote -v

  2 远程获取代码

    git fetch origin master

  如果出现 Already up-to-date 说明代码更新好了

  3 当然 我们也可以git fetch origin master:temp建立新分支temp,将代码合并到新分支temp上,在删除新分支temp

猜你喜欢

转载自www.cnblogs.com/nicknailo/p/9044368.html