AlwaysBeFriday 的博客

记录精彩的程序人生 开始使用

Git Gogs

  1. 安装配置
    1. https://blog.csdn.net/hwm_life/article/details/82969005
    2. 配置问题
      1. 域名:ip,不带port
      2. 访问端口,默认3000,如需要修改需要修改gogs配置文件
  2. 启动
    1. ./gogs web,前台启动
    2. nohup ./gogs web,后台启动
  3. 使用
    1. git init,git add ,git commit等命令使用方法和git一致
    2. git remote add origin http://192.168.10.123:3000/xxxx
    3. git push -u origin master
      1. 如果不能更新,强制更新,git push -f -u origin master
评论
留下你的脚步