Using git flow -- or not
$ brew install git-flow
$ ports install git-flow
$ apt-get install git-flow
$ wget -q -O - --no-check-certificate https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | bash
$ cd my/project $ git commit -am "Initial commit" $ git remote add origin git@github.com:username/Project-Name.git $ git push -u origin main
Create development branch, push it to the server
$ git checkout -b develop $ git push -u origin develop
You will be prompted, as seen below, for what branches you'd like to use. You can just hit `enter` for all.
Notes:
$ git flow init [-d] Which branch should be used for bringing forth production releases? - develop - main Branch name for production releases: [main] Which branch should be used for integration of the "next release"? - develop Branch name for "next release" development: [develop] How to name your supporting branch prefixes? Feature branches? [feature/] Release branches? [release/] Hotfix branches? [hotfix/] Support branches? [support/] Version tag prefix? []