Skip to content

Instantly share code, notes, and snippets.

@alpgarcia
Last active December 23, 2024 20:37

Revisions

  1. alpgarcia revised this gist May 22, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion github-token-for-git.md
    Original file line number Diff line number Diff line change
    @@ -6,5 +6,5 @@ git version 2.17.1
    3. cd /usr/share/doc/git/contrib/credential/libsecret
    4. sudo make
    5. git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
    6. Next time Git asked for GitHub's username an password, just write your username and paste your token and they'll
    6. Next time Git asks for your GitHub username and password, just write your username and paste your token and they'll
    be stored in your keyring.
  2. Alberto Pérez García-Plaza created this gist Nov 26, 2019.
    10 changes: 10 additions & 0 deletions github-token-for-git.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    1. git --version
    ```
    git version 2.17.1
    ```
    2. sudo apt-get install libsecret-1-0 libsecret-1-dev
    3. cd /usr/share/doc/git/contrib/credential/libsecret
    4. sudo make
    5. git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
    6. Next time Git asked for GitHub's username an password, just write your username and paste your token and they'll
    be stored in your keyring.