wandero
V2EX  ›  问与答

请教一个 git 的操作问题

  •  
  •   wandero · Jun 22, 2017 · 1864 views
    This topic created in 3271 days ago, the information mentioned may be changed or developed.
    要把 md 文件放在 github 的 repo 里

    每次修改之后都要运行
    git add、git commit、git push

    搜索了下,发现这种单纯修改的情况 git commit -a 可以替代前面两个

    请问有没有什么方法用一个命令实现整个操作
    4 replies    2017-06-22 13:57:05 +08:00
    SourceMan
        1
    SourceMan  
       Jun 22, 2017
    用 SVN
    U7Q5tLAex2FI0o0g
        2
    U7Q5tLAex2FI0o0g  
       Jun 22, 2017   ❤️ 1
    想偷懒用界面版的呗。SourceTree、GitHub Desktop
    imherer
        3
    imherer  
       Jun 22, 2017   ❤️ 1
    写个脚本,或者 alias
    nybux
        4
    nybux  
       Jun 22, 2017   ❤️ 1
    git commit -a && git push
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2819 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 15:08 · PVG 23:08 · LAX 08:08 · JFK 11:08
    ♥ Do have faith in what you're doing.