Git Installation (local)
# install git
brew install git
# check git installation and version
git version
gh (Git CLI)
brew install gh
Current User in Terminal
# check current user in terminal
git config -l
## or use gh
gh auth status
# login using gh when missing
gh auth login
# unset a terminal config value
git config user.name --unset
# override a terminal config value
git config user.name "Your Name"
Create Draft PR
pr create --title "The bug is fixed" --draft
Create Personal Access Token
(ssh
)
https://github.com/settings/tokens