V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
582033
V2EX  ›  问与答

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

  •  
  •   582033 · 2013-10-16 09:46:36 +08:00 · 2850 次点击
    这是一个创建于 3872 天前的主题,其中的信息可能已经有所发展或是发生改变。
    比如有a b c三个文件;

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

    我想提交下a b文件到仓储,而不影响正在编辑的C文件,该如何操作呢?
    3 条回复    1970-01-01 08:00:00 +08:00
    gjflsl
        1
    gjflsl  
       2013-10-16 09:47:50 +08:00
    git add a
    git add b
    git commit -m "change something"
    git push
    dingyaguang117
        2
    dingyaguang117  
       2013-10-16 09:48:31 +08:00
    不是一样的吗 只add a,b 就好啦
    582033
        3
    582033  
    OP
       2013-10-16 09:51:09 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2980 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 11:23 · PVG 19:23 · LAX 04:23 · JFK 07:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.