DEV Community

Discussion on: Cheatsheet for moving from Master to Main

Collapse
 
computamike profile image
Mike Hingley

Nice - I had been using the Scott Hanselman approach (which is the same that you have) which has the advantage (as far as I can see) that it sets the remote for you automatically - so I think you lose the requirement for the bash alias.

his article is here : hanselman.com/blog/EasilyRenameYou...

but I think the 'magic' is here :

git push -u origin main

which sets the upstream.

I hadn't thought about Pull Requests -