halo
V2EX  ›  问与答

GIT 历史 Commit Message 中有错字怎么办?

  •  
  •   halo · Feb 25, 2020 · 2399 views
    This topic created in 2451 days ago, the information mentioned may be changed or developed.
    蓝瘦
    5 replies  •  2020-02-26 10:59:05 +08:00
    lights
    lights
    Feb 25, 2020
    2
    楼上引用官方回答很全面,我日常用 git rebase -i
    mritd
    mritd
    Feb 25, 2020 via iPhone❤️2
    3
    突然想起公司某大哥在 2 年前的 cm 里写着: 增加性功能 ( ̄∇ ̄)
    imkuang
    imkuang
    Feb 25, 2020 via Android
    4
    没有推到远程仓库的话重写历史就行了,已经推到远程了那还是算了吧(如果是你自己一个人的仓库那随意)
    zzcworld
    zzcworld
    Feb 26, 2020
    5
    git commit --amend -m "你想要提交的新信息"
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2178 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 14:20 · PVG 22:20 · LAX 06:20 · JFK 09:20
    ♥ Do have faith in what you're doing.