• 请不要在回答技术问题时复制粘贴 AI 生成的内容
cevincheung
V2EX  ›  程序员

git pull 命令怎么指定路径?

  •  
  •   cevincheung ·
    cevin · Aug 13, 2014 · 5757 views
    This topic created in 4308 days ago, the information mentioned may be changed or developed.
    在服务器上有个任务每天自动更新代码。执行git pull /data/www提示当前没有在工作目录。必须切换到/data/www才行。


    git pull要怎么才可以?或者该用什么其他的方法?
    3 replies    2014-08-13 22:43:17 +08:00
    KentY
        1
    KentY  
       Aug 13, 2014   ❤️ 1
    git -C path pull

    man git then /-C<Enter>
    michaelzlies
        2
    michaelzlies  
       Aug 13, 2014 via iPad
    如果有数据库更新的话楼主是怎么处理的
    cevincheung
        3
    cevincheung  
    OP
       Aug 13, 2014
    @michaelzlies
    扫描SQL目录,执行后删除
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2752 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 104ms · UTC 06:04 · PVG 14:04 · LAX 23:04 · JFK 02:04
    ♥ Do have faith in what you're doing.