您当前的位置: 首页 >  git

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

参与Gitlab开源库开发指南

柳鲲鹏 发布时间:2022-10-10 11:10:36 ,浏览量:0

  泰山信息科技开发了泰山字体引擎,并按照协议开源。与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博客

  • 修改代码(略)
  • 确认状态
$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add ..." to update what will be committed)
  (use "git restore ..." to discard changes in working directory)
        modified:   include/freetype/ftsynth.h
        modified:   src/base/ftsynth.c

no changes added to commit (use "git add" and/or "git commit -a")
  • 提交代码
$ git add .
$ git commit -m "Add a api, someone can oblique by any value"

$ git push --set-upstream origin master
warning: redirecting to https://gitlab.freedesktop.org/quantum6/freetype.git/
Enumerating objects: 15, done.
Counting objects: 100% (15/15), done.
Delta compression using up to 8 threads
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 958 bytes | 958.00 KiB/s, done.
Total 8 (delta 6), reused 0 (delta 0), pack-reused 0
To https://gitlab.freedesktop.org/quantum6/freetype
   15f687349..c0b91c6a7  master -> master
branch 'master' set up to track 'origin/master'.
  • 提交MQ 
关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.0502s