halo
V2EX  ›  问与答

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

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