From Klenwell Wiki
Revision as of 16:19, 26 June 2021 by Klenwell (talk | contribs) (Init)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


I use the following routine in setting up a new repository with branches main (instead of master) and develop:

cd my-new-project
git init
git commit --allow-empty -m "Initial commit on main branch."
git branch -m master main
git checkout -b develop
git commit --allow-empty -m "Create develop branch."

See also: