Git 教程

Git 教程

欢迎使用 小书匠(xiaoshujiang)编辑器,您可以通过设置里的修改模板来改变新建文章的内容。

Git使用

Git服务器

  • gitblit

  • 首先要安装 java环境
    然后参考 :Windows平台下Git服务器搭建
    注1:配置http和https访问的接口,默认值是localhost,如果想要从其它电脑访问,赋空值就可以。
    server.httpBindInterface=
    server.httpsBindInterface=
    注2:此外如果打开了防火墙(比如系统自带的防火墙),需要设置放行入站的tcp端口(默认的端口包括8443(https),8080(http),29418(ssh),否则外部无法访问。
    Gitblit的安装配置及访问
    win7系统如何在防火墙里开放端口(win10可用)
    注3:Address already in use: JVM_Bind(端口冲突)

  • 我们自己的局域网服务器访问方式 http://ip:10010

    操作前先阅读 si仓库的文档

  • 我的gitblit安装在 D:\Git\gitblit-1.8.0
    gitblit.properties 修改 如下

    1. include = defaults.properties 
    2. # 
    3. # Define your overrides or custom settings below 
    4. # 
    5. git.repositoriesFolder = D:/Git/GitRepepository 
    6.  
    7. server.httpPort = 10010 
    8. server.httpsPort = 0 
    9.  
    10. server.httpBindInterface = 
    11. server.httpsBindInterface = 
原文地址:https://www.cnblogs.com/zozo825117/p/5874976.html