MajestySolor
V2EX  ›  问与答

git 如何查看一个修改过但是还没 commit 的文件具体改了什么?

  •  
  •   MajestySolor · Dec 21, 2014 · 23933 views
    This topic created in 4250 days ago, the information mentioned may be changed or developed.
    比如用git status看到a文件修改过,但是记不清这个文件我改了什么,怎么快速查看具体的修改情况呢
    我只会用git blame 文件名,但感觉这样很不方便,应该有什么更直观方便的办法吧
    4 replies    2014-12-21 21:23:03 +08:00
    snachx
        1
    snachx  
       Dec 21, 2014   ❤️ 1
    git diff FILENAME
    nicai000
        2
    nicai000  
       Dec 21, 2014
    我说, 手册和Google能解决的问题就别在这儿问了吧? 这种问题大家就别回答了吧?
    yylyyl
        3
    yylyyl  
       Dec 21, 2014
    别回答了 +1
    MajestySolor
        4
    MajestySolor  
    OP
       Dec 21, 2014
    @snachx 3Q~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2726 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 15:31 · PVG 23:31 · LAX 08:31 · JFK 11:31
    ♥ Do have faith in what you're doing.