当前位置:   article > 正文

参与Gitlab开源库开发指南_在 gitlab 9.5 之前的版本 open a

在 gitlab 9.5 之前的版本 open a

  泰山信息科技开发了泰山字体引擎,并按照协议开源。与FreeType人员进行了交流,要求使用Gitlab。

  • 注册账号

无法直接注册,吾使用了Github的账号。

  • 安装Github Desktop
  • 参与代码FreeType
https://gitlab.freedesktop.org/freetype/freetype
  • fork一个库

点击fork按钮:

如图操作:

  •  clone
$ git clone https://gitlab.freedesktop.org/quantum6/freetype
  • 设置用户名、邮件

git改变用户名和邮箱_柳鲲鹏的博客-CSDN博客

  •  新建个人SSH Key、Token

git sync fatal: Authentication failed for https://github.com/ did not exit cleanly (exit code 128)_柳鲲鹏的博客-CSDN博客

  • 修改代码(略)
  • 确认状态
  1. $ git status
  2. On branch master
  3. Your branch is up to date with 'origin/master'.
  4. Changes not staged for commit:
  5. (use "git add <file>..." to update what will be committed)
  6. (use "git restore <file>..." to discard changes in working directory)
  7. modified: include/freetype/ftsynth.h
  8. modified: src/base/ftsynth.c
  9. no changes added to commit (use "git add" and/or "git commit -a")
  • 提交代码
  1. $ git add .
  2. $ git commit -m "Add a api, someone can oblique by any value"
  3. $ git push --set-upstream origin master
  4. warning: redirecting to https://gitlab.freedesktop.org/quantum6/freetype.git/
  5. Enumerating objects: 15, done.
  6. Counting objects: 100% (15/15), done.
  7. Delta compression using up to 8 threads
  8. Compressing objects: 100% (8/8), done.
  9. Writing objects: 100% (8/8), 958 bytes | 958.00 KiB/s, done.
  10. Total 8 (delta 6), reused 0 (delta 0), pack-reused 0
  11. To https://gitlab.freedesktop.org/quantum6/freetype
  12. 15f687349..c0b91c6a7 master -> master
  13. branch 'master' set up to track 'origin/master'.
  • 提交MQ 
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小桥流水78/article/detail/806681
推荐阅读
相关标签
  

闽ICP备14008679号