DEV Community

Discussion on: 7 Forbidden Secrets of Git: Master the Most Important Commands Now!

Collapse
 
xmohammedawad profile image
Mohammed Awad

Tell me

Collapse
 
paolojr profile image
PJ Angeloni

You can use git branch --set-upstream-to <remote-branch> to set the default remote branch for the current local branch. This article does a good job of explaining further: stackoverflow.com/questions/180319...