UsingGit

1. install github cli "gh"

-----
type -p curl >/dev/null || sudo apt install curl -y
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
-----

2. set up the credential manager

----- 
on pi:

git config --global credential.helper store \
&& git config --global user.email rick@neverslow.com \
&& git config --global user.name "Rick VanNorman"

on mac: 
download the github credentials manager, do a push, and fill in the blanks

delete the directory .git-credentials to reset this stuff

-----

3. do a push operation. authenticate with username and the token as password
(for red6rick)
ghp*************************************

(for rcvn3d)
ghp*************************************


4. git should be transparent afterwards

5. remove the credentials by deleting ~/.git-credentials


if needed, a new personal token can be generated by visiting

https://github.com/settings/tokens