V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
john990
V2EX  ›  GitHub

Github 个人主页的 contributions 记录如何忽略一些仓库?

  •  
  •   john990 · 103 天前 · 654 次点击
    这是一个创建于 103 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我有一些机器人定时任务的 repositories ,导致我的 contributions in the last year 每天都有记录。

    如何忽略这些机器人的提交记录,让提交历史更真实一些?

    5 条回复    2024-01-16 17:19:09 +08:00
    Pencillll
        1
    Pencillll  
       103 天前 via Android   ❤️ 1
    只有默认分支会被记录,你把想隐藏的 repo 的默认分支设置成别的就行
    nagisaushio
        2
    nagisaushio  
       103 天前 via Android   ❤️ 1
    是利用 github action 的吗? github 有专门的 bot 账号,通过他们提交不会记成 contribution
    0o0O0o0O0o
        3
    0o0O0o0O0o  
       103 天前   ❤️ 1
    github actions 里
    git config --global user.name "github-actions[bot]"
    git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
    sleeepyy
        4
    sleeepyy  
       103 天前   ❤️ 1
    repo 下面可以设置 local 的 git config username 和 email
    john990
        5
    john990  
    OP
       102 天前
    @Pencillll
    @nagisaushio
    @0o0O0o0O0o
    @sleeepyy
    感谢大家!按照 @0o0O0o0O0o 的办法已经设置成功了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2526 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 15:50 · PVG 23:50 · LAX 08:50 · JFK 11:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.