Skip to content

Instantly share code, notes, and snippets.

@JonnyTech
Last active August 20, 2023 01:05

Revisions

  1. JonnyTech revised this gist Aug 20, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion git.txt
    Original file line number Diff line number Diff line change
    @@ -23,7 +23,7 @@ https://github.com/settings/tokens/new

    git config --global user.name "username"
    git config --global user.email "name[at]domain[dot]tld"
    git config --global user.email "[email protected]"
    git config --global user.email "ID+[email protected]"
    git config --global color.ui auto

    git clone https://github.com/username/repo
  2. JonnyTech revised this gist Jun 7, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions git.txt
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,7 @@ eval "$(ssh-agent -s)"
    ssh-add ~/.ssh/github
    ssh -vT [email protected]

    gpg -K --keyid-format SHORT
    gpg --full-generate-key
    gpg --list-secret-keys --keyid-format=long
    >> long string at and of sec value
  3. JonnyTech revised this gist May 9, 2023. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions git.txt
    Original file line number Diff line number Diff line change
    @@ -26,11 +26,15 @@ git config --global user.email "[email protected]"
    git config --global color.ui auto

    git clone https://github.com/username/repo
    >> write code :)
    git log
    git status
    git diff --cached
    git diff HEAD
    git add .
    >> ensure that git and gpg key email addresses are identical
    git commit -S -m "commit title/brief" -m "commit decription"
    >> enter gpg secret
    git push
    >> username, pat
    git log --show-signature
  4. JonnyTech revised this gist May 7, 2023. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions git.txt
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,13 @@ eval "$(ssh-agent -s)"
    ssh-add ~/.ssh/github
    ssh -vT [email protected]

    gpg --full-generate-key
    gpg --list-secret-keys --keyid-format=long
    >> long string at and of sec value
    gpg --armor --export <sec value>
    >> copy whole block including ---'s
    https://github.com/settings/gpg/new

    https://github.com/settings/tokens/new
    >> name, repo status
    >> copy and save pat
  5. JonnyTech revised this gist May 7, 2023. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion git.txt
    Original file line number Diff line number Diff line change
    @@ -25,4 +25,5 @@ git add .
    >> ensure that git and gpg key email addresses are identical
    git commit -S -m "commit title/brief" -m "commit decription"
    git push
    >> username, pat
    >> username, pat
    git log --show-signature
  6. JonnyTech revised this gist May 7, 2023. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions git.txt
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@ git clone https://github.com/username/repo
    git log
    git status
    git add .
    git commit -m "commit message"
    git commit -m "commit title/brief" -m "commit decription"
    >> ensure that git and gpg key email addresses are identical
    git commit -S -m "commit title/brief" -m "commit decription"
    git push
    >> username, pat
  7. JonnyTech revised this gist May 6, 2023. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion git.txt
    Original file line number Diff line number Diff line change
    @@ -9,11 +9,20 @@ eval "$(ssh-agent -s)"
    ssh-add ~/.ssh/github
    ssh -vT [email protected]

    https://github.com/settings/tokens/new
    >> name, repo status
    >> copy and save pat

    git config --global user.name "username"
    git config --global user.email "name[at]domain[dot]tld"
    git config --global user.email "[email protected]"
    git config --global color.ui auto

    git clone https://github.com/username/repo
    git log
    git status
    git add .
    git commit -m "commit message"
    git push
    git commit -m "commit title/brief" -m "commit decription"
    git push
    >> username, pat
  8. JonnyTech revised this gist May 6, 2023. 1 changed file with 5 additions and 4 deletions.
    9 changes: 5 additions & 4 deletions git.txt
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,19 @@
    ```
    ssh-keygen -t ed25519 -C "name[at]domain[dot]tld"
    >> keyfile ie /home/user/.ssh/github
    >> passphrase and confirm
    https://github.com/settings/ssh/new
    cat /home/user/.ssh/github
    >> authentication key

    eval "$(ssh-agent -s)"
    ssh-add ~/.ssh/github
    ssh -vT [email protected]

    git config --global user.name "username"
    git config --global user.email "name[at]domain[dot]tld"
    git config --global color.ui auto
    git clone github.com/username/repo

    git clone https://github.com/username/repo
    git log
    git commit -m "commit message"
    git push
    ```
    git push
  9. JonnyTech created this gist May 6, 2023.
    18 changes: 18 additions & 0 deletions git.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    ```
    ssh-keygen -t ed25519 -C "name[at]domain[dot]tld"
    >> keyfile ie /home/user/.ssh/github
    >> passphrase and confirm
    https://github.com/settings/ssh/new
    cat /home/user/.ssh/github
    >> authentication key
    eval "$(ssh-agent -s)"
    ssh-add ~/.ssh/github
    ssh -vT [email protected]
    git config --global user.name "username"
    git config --global user.email "name[at]domain[dot]tld"
    git config --global color.ui auto
    git clone github.com/username/repo
    git log
    git commit -m "commit message"
    git push
    ```