惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
罗磊的独立博客
月光博客
月光博客
GbyAI
GbyAI
腾讯CDC
G
Google Developers Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
C
Check Point Blog
Y
Y Combinator Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
雷峰网
雷峰网
B
Blog RSS Feed
美团技术团队
M
MIT News - Artificial intelligence
有赞技术团队
有赞技术团队
D
Docker

博客园 - Likwo

开源 | ChatClaw Go语言开发的openclaw龙虾智能体 go gin 入门教程,蛮不错的 chatwiki的邀请码 客服系统里芝麻小客服如何接让用户发送商品卡片的demo 开源一个RAG大模型本地知识库问答机器人-ChatWiki 微信视频号小店如何绑定开放平台获取unionID? 销大师停止运营了 微信公众号自定义菜单的一些思考-我为什么做公众号自定义菜单 go语言标准库 跳转网址 mysql 内存使用优化 H5客服系统的搭建和探讨 Nginx日志分析工具 微信客服接口文档 七牛云违规删除问题 好用的团队协助软件推荐 nginx 文档 nginx启动时出现Unit nginx.service is masked. MySQL查看表占用空间大小
git 显示本地和远程分支的差别
Likwo · 2021-08-23 · via 博客园 - Likwo

Git中从远程的分支获取最新的版本到本地有这样2个命令:
1. git fetch:相当于是从远程获取最新版本到本地,不会自动merge

git fetch origin master
git log -p master..origin/master
git merge origin/master
以上命令的含义:
首先从远程的origin的master主分支下载最新的版本到origin/master分支上
然后比较本地的master分支和origin/master分支的差别
最后进行合并
上述过程其实可以用以下更清晰的方式来进行:

git fetch origin master:tmp
git diff tmp
git merge tmp

posted on 2021-08-23 12:53  Likwo  阅读(3541)  评论(0)    收藏  举报