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

推荐订阅源

GbyAI
GbyAI
J
Java Code Geeks
雷峰网
雷峰网
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
V
Vulnerabilities – Threatpost
S
Securelist
The Hacker News
The Hacker News
The Register - Security
The Register - Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Help Net Security
Help Net Security
G
Google Developers Blog
Hugging Face - Blog
Hugging Face - Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
M
MIT News - Artificial intelligence
AI
AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Schneier on Security
Schneier on Security
N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
Google DeepMind News
Google DeepMind News
Hacker News - Newest:
Hacker News - Newest: "LLM"
H
Hacker News: Front Page
博客园 - 司徒正美
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
大猫的无限游戏
大猫的无限游戏
Security Latest
Security Latest
Engineering at Meta
Engineering at Meta
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
U
Unit 42
V
V2EX
V2EX - 技术
V2EX - 技术
L
LINUX DO - 最新话题
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
Recorded Future
Recorded Future
P
Privacy & Cybersecurity Law Blog
美团技术团队
小众软件
小众软件
F
Fortinet All Blogs

博客园 - 星际浪子

In Theano, how to do Reverse-MaxPooling in the Convolutional MaxPooling Auto-Encoder 如何让Ubuntu中virtualbox虚拟机用上USB设备 Deep Learning Stuffs(持续更新中……) 实例描述如何用python组件ctypes调用c的dll中的函数 放弃MATLAB!简述winpython为什么比MATLAB更方便 虚拟机Ubuntu10.04无法显示windows中文目录和文件 W: GPG 错误 用debugfs挂载硬盘,删除损坏的文件 数据资源 机器学习资源 镜头的参数指标 PCA和ICA GIT 常用命令手册 opencv中snake的调用方法示例 偏最小二乘法回归(Partial Least Squares Regression) Linux常用几种shell Git详解-Git分支 网线连接并PPPOE拨号后无法扫描无线网络问题的解决办法 gdb 命令详细解释
GIT diff 命令
星际浪子 · 2012-11-14 · via 博客园 - 星际浪子

diff:
 
开发人员在本地进行开发后,可以使用git diff查看改动。

git diff --cached 比较HEAD中文件和索引中文件的不同。
git diff                  比较索引文件和工作目录中文件的不同。
git diff HEAD     比较HEAD文件和工作目录中文件的不同。 
git diff tag                    比较tag和HEAD之间的不同。
git diff tag file               比较一个文件在两者之间的不同。
git diff tag1..tag2             比较两个tag之间的不同。
git diff SHA11..SHA12           比较两个提交之间的不同。
git diff tag1 tag2 file or
git diff tag1:file tag2:file    比较一个文件在两个tag之间的不同。

ORIG_HEAD用于指向前一个操作状态,因此在git pull之后如果想得到pull的内容就可以:
 
git diff ORIG_HEAD
 
git diff --stat                 用于生成统计信息。
git diff --stat ORIG_HEAD