TIL - Rename a remote branch from Github CLI
I’ve been playing with the Github CLI lately and thought it will be interesting to see if I can rename the
master (default) branch to
main in a couple of legacy repos. This is easily achieved by using the Github API via the GitHub CLI
PS: This is my first TIL (Today I learned) post. I’ve been inspired by the work and dedication of Simon Willison and Josh Branchaud, who regularly share TILs. The plan is to now share on a daily basis what I learn.