Sauter Git Workflow : Creating the initial repository - sauter-hq/git-guidelines GitHub Wiki

  1. Create a repository on Github (this will create the master branch)

    Create New Repository

You have to give this new repository a name ( See Git Naming Guidelines ) You should add a description
All our development repositories are private Initialize the repository with a README.md file You may add a .gitignore file

Then continue with :

SourceTree

  1. Launch SourceTree and clone this repository, if it does not yet exist in your local workspace. See clone repository

  2. Create a branch develop. This will be the default branch we use and select the checkbox Checkout New Branch to start working on it.

    Create New Branch

  3. Push the branches by clicking on Push and choose Select All to push all branches.

    Push All Branches

Command Line

  1. Clone the repository
git clone reporsitory-url/repo-name.git
Cloning into 'repo-name'...
done.
Checking out files: 100% (111/111), done.
  1. Create a branch develop. This will be the default branch (you can set it later on github in the repository settings).
git checkout -b develop
Switched to a new branch 'develop'
  1. Push everything online
git push origin --all