582033
V2EX  ›  问与答

git如何像SVN一样提交某一个或几个文件?

  •  
  •   582033 · Oct 16, 2013 · 3397 views
    This topic created in 4686 days ago, the information mentioned may be changed or developed.
    比如有a b c三个文件;

    我编辑完成a b文件后,正在编辑c文件,

    我想提交下a b文件到仓储,而不影响正在编辑的C文件,该如何操作呢?
    3 replies    1970-01-01 08:00:00 +08:00
    gjflsl
        1
    gjflsl  
       Oct 16, 2013
    git add a
    git add b
    git commit -m "change something"
    git push
    dingyaguang117
        2
    dingyaguang117  
       Oct 16, 2013
    不是一样的吗 只add a,b 就好啦
    582033
        3
    582033  
    OP
       Oct 16, 2013
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2924 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:31 · PVG 15:31 · LAX 00:31 · JFK 03:31
    ♥ Do have faith in what you're doing.