douru5373 2013-07-30 11:08
浏览 42

在ubuntu中本地共享Git

I am a php developer. I have installed Git on my system(ubuntu 12.04). Now i want to make my system as server and my colleague's systems as clients. ie, a local sharing. Is it possible? we are using eclipse as the editor. We have installed the EGIT plugin in our system. I am very new in Git.Please help me.

  • 写回答

2条回答 默认 最新

  • doupai8095 2013-07-30 11:25
    关注

    Run git daemon to serve your local git repository:

    $ git daemon --export-all --base-path=$(pwd)
    

    .. assuming pwd path is at your git repository..

    Then others can either clone your repository or just pull from it if they already have the same repository cloned from a common origin:

    e.g.

    git remote add yourname git://your-ip-address/repo-name
    git pull yourname master
    
    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器