V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
cevincheung
V2EX  ›  程序员

git pull 命令怎么指定路径?

  •  
  •   cevincheung ·
    cevin · 2014-08-13 00:00:18 +08:00 · 4874 次点击
    这是一个创建于 3560 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在服务器上有个任务每天自动更新代码。执行git pull /data/www提示当前没有在工作目录。必须切换到/data/www才行。


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

    man git then /-C<Enter>
    michaelzlies
        2
    michaelzlies  
       2014-08-13 11:29:59 +08:00 via iPad
    如果有数据库更新的话楼主是怎么处理的
    cevincheung
        3
    cevincheung  
    OP
       2014-08-13 22:43:17 +08:00
    @michaelzlies
    扫描SQL目录,执行后删除
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2844 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 09:56 · PVG 17:56 · LAX 02:56 · JFK 05:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.