-things I often forget
gh --version
sudo apt update
sudo apt install gh
gh auth login
# Choose: GitHub.com → HTTPS → browser
gh auth status
ssh-keygen -t ed25519 -C "your_email@example.com"
ssh-add ~/.ssh/id_ed25519
cat ~/.ssh/id_ed25519.pub
# Copy output → GitHub → Settings → SSH keys
ssh -T git@github.com
# Expected: Hi username! You've successfully authenticated...
gh repo create my-project --public --source=. --remote=origin --push
git init
git add .
git commit -m "first commit"
git push -u origin main
git status
git add file.py
git commit -m "message"
git push
git pull
git checkout -b feature-x # create & switch
git checkout main # go back to main
git merge feature-x # merge branch
git branch -d feature-x # local
git push origin --delete feature-x # remote
gh repo delete username/repo # delete whole repo
git status