• One thing I’ve found useful at work is not having a local master (or main) branch. Since we work on feature branches, I can fork those off origin/master, and later rebase/etc. on to that as I fetch newer revisions.

    Most people seem to always set up local branches for tracking remote ones; but that’s completely unnecessary in my case, and would just cause extra complications to keep them in sync. The trick is knowing that origin/master is local: it’s what my copy of the repo thinks is on the remote, based on the last fetch I performed.


    score 1 · canonical