Linux Terminal Glossary
›
GitHub CLI
gh repo edit --default-branch main
Category:
GitHub CLI
gh repo edit --default-branch main
Copy command
Change the default branch of a repository
Changes the default branch of a repository to 'main'.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.