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

私有 git 服务文件 push 过去的文件存储在哪?

  •  
  •   oneisall · 2017-08-28 22:07:42 +08:00 · 1944 次点击
    这是一个创建于 2455 天前的主题,其中的信息可能已经有所发展或是发生改变。
    学着在树莓派上搭建了 git 私有仓库 比如仓库是 /home/pi.git ,git push 没问题 git clone 到本地也 ok。但是在 /home 路径下我怎么也找不着 push 过去的东西。所以请教下各位。
    第 1 条附言  ·  2017-08-28 23:10:05 +08:00
    感谢 五楼 六楼知道原因了。
    8 条回复    2017-08-28 23:00:40 +08:00
    ysc3839
        1
    ysc3839  
       2017-08-28 22:11:43 +08:00 via Android
    用的是什么协议通信的?
    oneisall
        2
    oneisall  
    OP
       2017-08-28 22:15:37 +08:00
    @ysc3839 ssh
    fashioncj
        3
    fashioncj  
       2017-08-28 22:18:30 +08:00 via iPhone
    ls -al
    oneisall
        4
    oneisall  
    OP
       2017-08-28 22:42:25 +08:00
    @fashioncj ls -al 找不到的,我想问的是其实是 git 服务器是直接存储 push 过去的文件在那路径下?
    chinvo
        5
    chinvo  
       2017-08-28 22:45:55 +08:00   ❤️ 1
    @oneisall #4 服务器端存的是未检出数据,比如:

    $ ls abc.git
    HEAD branches config description hooks index info objects refs
    noe132
        6
    noe132  
       2017-08-28 22:51:36 +08:00   ❤️ 1

    就是这样的。
    服务端没有 working copy
    noe132
        7
    noe132  
       2017-08-28 22:52:44 +08:00
    如果你要提取里面的文件,可以在服务器新建个文件夹 git clone /home/pi.git
    oneisall
        8
    oneisall  
    OP
       2017-08-28 23:00:40 +08:00
    @noe132 好的 感谢,我找半天没找到理解错了。应该服务端再 git clone 遍再写个 hooks 就可以了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   923 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 20:28 · PVG 04:28 · LAX 13:28 · JFK 16:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.