oneisall
V2EX  ›  问与答

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

  •  
  •   oneisall · Aug 28, 2017 · 2411 views
    This topic created in 3271 days ago, the information mentioned may be changed or developed.
    学着在树莓派上搭建了 git 私有仓库 比如仓库是 /home/pi.git ,git push 没问题 git clone 到本地也 ok。但是在 /home 路径下我怎么也找不着 push 过去的东西。所以请教下各位。
    Supplement 1  ·  Aug 28, 2017
    感谢 五楼 六楼知道原因了。
    8 replies    2017-08-28 23:00:40 +08:00
    ysc3839
        1
    ysc3839  
       Aug 28, 2017 via Android
    用的是什么协议通信的?
    oneisall
        2
    oneisall  
    OP
       Aug 28, 2017
    @ysc3839 ssh
    fashioncj
        3
    fashioncj  
       Aug 28, 2017 via iPhone
    ls -al
    oneisall
        4
    oneisall  
    OP
       Aug 28, 2017
    @fashioncj ls -al 找不到的,我想问的是其实是 git 服务器是直接存储 push 过去的文件在那路径下?
    chinvo
        5
    chinvo  
       Aug 28, 2017   ❤️ 1
    @oneisall #4 服务器端存的是未检出数据,比如:

    $ ls abc.git
    HEAD branches config description hooks index info objects refs
    noe132
        6
    noe132  
       Aug 28, 2017   ❤️ 1

    就是这样的。
    服务端没有 working copy
    noe132
        7
    noe132  
       Aug 28, 2017
    如果你要提取里面的文件,可以在服务器新建个文件夹 git clone /home/pi.git
    oneisall
        8
    oneisall  
    OP
       Aug 28, 2017
    @noe132 好的 感谢,我找半天没找到理解错了。应该服务端再 git clone 遍再写个 hooks 就可以了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1050 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:49 · PVG 02:49 · LAX 11:49 · JFK 14:49
    ♥ Do have faith in what you're doing.