Git
Discard All Current Changes
bash
git reset --hard HEADPermanently discards all staged and unstaged changes to tracked files. Untracked files are left untouched.
Clone All Repos in Your Account
Requires the GitHub CLI and gh auth login.
bash
gh repo list --limit 200 --json nameWithOwner -q '.[].nameWithOwner' | xargs -n1 gh repo cloneWith no owner argument, gh repo list returns the authenticated user's repositories. Pass an owner to clone someone else's, and raise --limit past the 200 shown here if the account has more.