git log

  1. 让日期数字化
    (这几个英文的月份简写实在看着断片)
    git log --date=format:"%Y%m%d"

  2. 一行显示 + 数字日期 + 作者 + commit
    git log --date=format:"%Y%m%d" --pretty=format:"%ad %an %s"

  3. 反向,最早的放前面。 --reverse
    git log --date=format:"%Y%m%d" --pretty=format:"%ad %an %s" --reverse

  4. 只看自己的:
    git log --date=format:"%Y%m%d" --author='xxxyouname'
    git log --date=format:"%Y%m%d" --pretty=format:"%ad %an %s " --author='xxxyouname'

  5. 查看当前分支的创建日期
    产品偷偷拉个分支,n个分支到处同步代码。。。。
    git log --graph --oneline --all --decorate

    git log --date=format:"%Y%m%d" --pretty=format:"%ad %an %C(green)%d%C(reset) %s" --all --graph

相关推荐
echome8884 小时前
Git 日常救急:撤销提交、找回误删文件和解决冲突
git·版本控制
赵民勇8 小时前
Git命令详解
git
不老刘1 天前
Antigravity 的 New Worktree 模式:给 AI 代理一个安全的“平行工位”
人工智能·git·ai编程·antigravity
光谱SpectrAI1 天前
Windows 也中招:Git Bash 和 Node 仍信任泄露的 eMudhra 证书
git
YIN_尹1 天前
【git原理与使用】git初识与安装
大数据·git·elasticsearch
Leo_Mr1 天前
Vue3 项目配置 Git 提交规范(企业通用方案:husky + commitlint + cz-git + lint-staged)
git
jyOverQ1 天前
Git rebase 和 merge 有什么区别?什么时候该用哪个?
git
晗夜未央1 天前
跨仓库 Skill 换台电脑就失效?用 Git remote 校验项目
人工智能·git·python
Lsetea1 天前
Git访问HTTPS证书不受信任:用URL级sslCAInfo限定私有CA范围
git·https·开发工具·ssl证书·ca证书
এ慕ོ冬℘゜2 天前
Git 基础入门|和 SVN 对比 + 四大区域 + 常用命令详解
git·svn