Sauter Git Workflow : Creating the initial repository - sauter-hq/git-guidelines GitHub Wiki
-
Create a repository on Github (this will create the master branch)
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
-
Launch SourceTree and clone this repository, if it does not yet exist in your local workspace. See clone repository
-
Create a branch develop. This will be the default branch we use and select the checkbox Checkout New Branch to start working on it.
-
Push the branches by clicking on Push and choose Select All to push all branches.
Command Line
- Clone the repository
git clone reporsitory-url/repo-name.git
Cloning into 'repo-name'...
done.
Checking out files: 100% (111/111), done.
- 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'
- Push everything online
git push origin --all