<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Loading

      Git 免密認證:Git Credential Helper

      提到 Git 免密,也許大多數人會想到 SSH。但是當 SSH 不可用的時候怎么辦?

      比如你沒有提交 SSH 公鑰的權限。

      又比如自建的 Git,如果所有域名都在 Cloudflare 的保護下,不想暴露 ip 地址,就只能用 https。(PS: 這種情況也可以用 Cloudflare Tunnel,而且需要客戶端額外配置,不是很推薦)

      Git Credential Helper

      Git Credential Helper 就是解決在 HTTPS 協議下 Git 操作時需要頻繁輸入密碼或者 PAT 的痛點。

      設置僅需一行代碼:

      git config --global credential.helper <helper_name>
      

      macOS

      git config --global credential.helper osxkeychain
      

      Windows

      新版的 Windows Git 應該自動安裝了 GCM,無需單獨設置。

      git config --global credential.helper manager
      # 或者
      git config --global credential.helper wincred
      

      Linux

      如果有桌面環境,可以存到GNOME Keyring 或者 KDE Wallet

      git config --global credential.helper libsecret
      

      如果沒有,可以看下面的

      通用方法

      1. Cache

        默認在內存中持續15分鐘,如果有需要可以延長時間。

        git config --global credential.helper cache
        # 一小時
        git config --global credential.helper 'cache --timeout=3600'
        
      2. Store

        這種方法不安全,因為是明文存儲,不要在公共環境或者生產環境使用,僅作為最后的手段。

        git config --global credential.helper store
        # 或者指定位置
        git config --global credential.helper 'store --file ~/.my-credentials'
        
      3. GCM: Git Credential Manager

        安裝方法見:

        1. https://github.com/git-ecosystem/git-credential-manager/blob/release/docs/install.md

        2. https://docs.github.com/en/get-started/git-basics/caching-your-github-credentials-in-git

        據稱只要安裝,無需配置即可使用。

        對于Windows 用戶來說,只要安裝了 GCM,所有的 WSL 均可分享憑證,很方便。

      參考資料:

      1. 7.14 Git Tools - Credential Storage
      2. Git credential helpers
      posted @ 2025-10-29 15:15  SmileMachine  閱讀(161)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 人妻聚色窝窝人体WWW一区| 精品亚洲无人区一区二区| 黄石市| 久久精品国产亚洲av亚| 国产不卡一区二区精品| 特黄特色的大片观看免费视频| 国产片AV国语在线观看手机版| 黑人巨大精品欧美一区二区| 夜夜躁日日躁狠狠久久av| 91精品国产麻豆国产自产| 给我播放片在线观看| 久热色视频精品在线观看| 亚洲日本欧美日韩中文字幕| 大伊香蕉精品一区视频在线| 丁香五月天综合缴情网| 成人国产精品中文字幕| 长兴县| 国产精品嫩草99av在线| julia无码中文字幕一区| 色婷婷五月综合久久| 国产精品久久中文字幕| 民权县| 伊人中文在线最新版天堂| 亚洲无码精品视频| 伊人色综合久久天天| 日本高清一区免费中文视频| 精品国产一区二区三区av性色| 国产最大的福利精品自拍| 久久亚洲精品无码播放| 国产精品高清一区二区三区不卡| 亚洲综合91社区精品福利| 精品中文人妻中文字幕| 日本高清一区免费中文视频| 在线精品自拍亚洲第一区| 日本在线视频网站www色下载 | 国产肥妇一区二区熟女精品| 亚洲免费视频一区二区三区 | 亚洲男人天堂2018| 亚洲 卡通 欧美 制服 中文 | 天天拍夜夜添久久精品大| 武清区|