Global Feed Post Login
Replying to Avatar sommerfeld

Always start a new feature branch by always branching off origin/master using `git switch -c feature/branch origin/master` (previous git fetch required obviously).

Then after pushing it remotely, reviewal and approval, you can merge it directly to origin/master or, if your repo policy is avoiding merges, you can push the feature branch directly to origin/master using `git push feature/branch: master`

You don't ever really need to have a 'local master'

Avatar
sommerfeld 1y ago

*there's a whitespace typo in the last command, beware

Reply to this note

Please Login to reply.

Discussion

No replies yet.