Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于贡献的小技巧 #52

Closed
maboloshi opened this issue Nov 11, 2023 · 2 comments
Closed

关于贡献的小技巧 #52

maboloshi opened this issue Nov 11, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@maboloshi
Copy link
Owner

maboloshi commented Nov 11, 2023

同步复刻

除非需要独立维护自己的复刻分支,一般情况贡献后,可以直接使用同步复刻按钮 使自己的复刻分支与上游同步一直。所以,不需要每次删除复刻再重新复刻。

image

image

存在冲突的情况下,考虑是否需要同步重置
image

使用 GPG 密钥签署

详见官方教程:https://docs.github.com/zh/authentication/managing-commit-signature-verification

@maboloshi maboloshi pinned this issue Nov 11, 2023
Repository owner locked and limited conversation to collaborators Nov 11, 2023
@wuyuncheng-26
Copy link
Collaborator

wuyuncheng-26 commented Nov 11, 2023

PR 被 merge 之后……

你有两种选择:
① 如果你不想再提 PR,那可以把 fork 的仓库删掉
② 如果以后要长期帮助此项目,请继续保存,并可以向我们申请协作者权限

小贴士🌟:如果选择②,那请在 merge 后在 fork 的仓库中点击丢弃XXX个提交,并将本地的文件夹删掉重新 clone

别问我怎么知道的,问就是我曾经踩过这些坑

@wuyuncheng-26
Copy link
Collaborator

wuyuncheng-26 commented Nov 11, 2023

clone 时速度超慢

可以选择在命令结尾加上--depth 3
示例:

git clone git@github.com:wuyuncheng-26/github-chinese.git --depth 3

(意思就是只 clone 最近 3 次提交)

PS:

  1. 建议学会科学上网
    关于proxy设置可参考: https://gist.github.com/maboloshi/a4546e04c260177a50e6b7704f1c9b73
  2. 使用https协议
  3. 轻量级编辑器推荐: Sublime Text
  4. 轻量级 git 图形化客户端推荐: Sublime Merge

@wuyuncheng-26 wuyuncheng-26 added the documentation Improvements or additions to documentation label Nov 11, 2023
@maboloshi maboloshi converted this issue into discussion #57 Nov 12, 2023
@wuyuncheng-26 wuyuncheng-26 unpinned this issue Nov 13, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants