www.byitx.com

pages-build-deployment

:one: The default branch has been renamed!

git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a

:two: Congiure user commit infomation!

git config --global user.name "Your Name"
git config --global user.email you@example.com

:three: Github multi profile configure!

# gh alias set --shell {identifier} 'cp ~/.config/gh/hosts.yml.{identifier} ~/.config/gh/hosts.yml && gh auth status && git config --global user.name {username} && git config --global user.email {username@email.com}'
gh alias set --shell company 'cp ~/.config/gh/hosts.yml.company ~/.config/gh/hosts.yml && gh auth setup-git && gh auth status && git config --global user.name {company} && git config --global user.email {company@email.com}'
gh alias set --shell personal 'cp ~/.config/gh/hosts.yml.personal ~/.config/gh/hosts.yml && gh auth setup-git && gh auth status && git config --global user.name {personal} && git config --global user.email {personal@email.com}'
cat ~/.config/gh/config.yml

:four: Use Github multi Profile

gh company # or personal
gh auth status