git diff HEAD

$ git diff HEAD

上面这条命令会显示你工作目录与上次提交时之间的所有差别,这条命令所显示的 内容都会在执行”git commit -a”命令时被提交。

这句等同于svn中的 svn diff。即比较工作副本与服务器之间的差异。

您可能感兴趣的文章

  1. git reset 暂存区如何信息提示
  2. git cherry-pick
  3. 硬恢复(删除最后的改动,commit信息和代码)
  4. git 与 subversion分支
  5. git 撤消文件修改
  6. git 恢复单个文件
  7. git tag 对象
  8. git blob 对象
  9. git tree 对象
  10. git 多人协作
分享到Twitter 分享到新浪微博 分享到开心 分享到QQ空间 分享到人人 分享到鲜果 分享到豆瓣 分享到网易微博 分享到搜狐微博
You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.

Powered by WordPress | Find Wireless Deals at BestInCellPhones.com. | Thanks to iCellPhoneDeals.com Free Cell Phones, Find Highest CD Rates and Incinerador De Grasa Revisión