zoukankan      html  css  js  c++  java
  • git log怎么搜索关键字,git log怎么查找关键字,git log搜索提交注释

    • 查找含有某个字符串的 commit

    // 这条命令是查看含有 "224" 关键字的 git commit
    git log --grep=224
    • 查看某个作者

     // 查找 关于 cxm 提交的修改
    git log --author=cxm
    • 使用 git log --help 查看其它的应用

    git log 查看提交记录
    git log 查看提交历史记录
    git log --oneline 或者 git log --pretty=oneline 以精简模式显示
    git log --graph 以图形模式显示
    git log --stat 显示文件更改列表
    git log --author= 'name' 显示某个作者的日志
    git log -p filepath 查看某个文件的详细修改
    git log -L start,end:filepath 查看某个文件某几行范围内的修改记录
    git log --stat commitId 或者 git show --stat commitId 查看某一次提交的文件修改列表
    git diff 文件对比
    git diff filepath 工作区与暂存区比较
    git diff HEAD filepath 工作区与HEAD ( 当前工作分支) 比较
    git diff --staged 或 --cached filepath 暂存区与HEAD比较
    git diff branchName filepath 当前分支的文件与branchName 分支的文件进行比较
    git diff commitId filepath 与某一次提交进行比较
    声明 欢迎转载,但请保留文章原始出处:) 博客园:https://www.cnblogs.com/chenxiaomeng/ 如出现转载未声明 将追究法律责任~谢谢合作
  • 相关阅读:
    Pycharm中 import 引入同级文件失败问题
    Python实现 K_Means聚类算法
    Python 的 Matplotlib 画图库
    Numpy库应用实例——GPS定位
    Python 的 Numpy 库
    Python 各种库的安装
    Python 的 pandas 实践
    方差、协方差、协方差矩阵
    Python实现梯度下降法
    Vue 不睡觉教程3
  • 原文地址:https://www.cnblogs.com/chenxiaomeng/p/15719615.html
Copyright © 2011-2022 走看看