How to find the log I want when using 'git log'
来源:互联网 发布:淘宝抢购需要刷新页面 编辑:程序博客网 时间:2024/06/08 01:49
Usually we use the * git log* without any parameters,just like:
git log##or make the number of the log that need to be showgit log -3
But sometimes I just want to search some specific logs I want.So how can I attach my goal?Add the parameters you need!
- If you want to search the log with a specific person,using –author:
git log --author=xxx
- If you want to show the modification history,using -p:
#show the lastest 2 log and the commit modificationgit log -p -2
- If you want to show many logs and just need to know part of the information for every log,using –pretty,the value can be oneline,short,full,fuller,which means the amount of the information you want to display.
#show oneline for every loggit log --pretty=oneline -10#show part of the loggit log --pretty=short -10
- show the add/modify/delete file list,using –name-status:
- If you want to show the logs after a time node,using –since or –after:
##show the last 2 weeks' logsgit log --since=2,weeks
- If you want to show the logs before a time node,using –until or –before:
git log --before=2,weeks
- If you want to search the key word of the log,using –grep:
git log --grep=xxx
阅读全文
0 0
- How to find the log I want when using 'git log'
- how to find the log file of mysql
- how to find error in log
- How do I get multiple process to log to the same file?
- How to clear the archive log
- How to output the message when using the function 'printf'
- How to log application API calls using import module addresses
- How to record log of specified package by using log4j
- how to capture log
- when I want to have a rest
- How to find Domino installation related log files
- try, i want to write log file of my programming jornney!
- Why can't I find the object associated with the ACL that I want to delete?
- Using Reporting Services to Search the SQL Server Log
- How to delete the log file of log4j dynamically
- How to Refine the Log Retention Settings in XenServer
- How to log the correct Ip having Varnish and Nginx
- How to enable the uart log in user version
- 第九周-项目二-二叉树遍历的递归算法
- JDBC源码分析&桥接模式
- 聊天室
- Error:Execution failed for task ':testrx:prepareDebugAndroidTestDependencies'. > Dependency Error. S
- PulltoRefresh下拉和上拉
- How to find the log I want when using 'git log'
- 搭建SpringMVC-mybatis
- 微信JSSDK-前端-自定义分享
- PB 等待函数
- Java,Maven的环境变量配置
- Java数组总结
- Spring中bean的含义
- React-Native 学习笔记1
- 第12周项目2- Kruskal算法的验证