- Create directory
- Go into new directory
- Create bare repo
git init --bare
- Clone repo somewhere
git clone <repo>
- Go into repo folder
- Create .gitignore file
- Commit & push new file
git add .gitignore
git commit -m "Added .gitignore file"
git push
- Create branch
git branch develop
git push -u origin develop
- Create branch from develop
git checkout develop
git checkout -b feature/branch
git push --set-upstream origin feature/branch
- Merge back into develop
git checkout develop
git merge feature/branch
git push
- Create branch from develop
git checkout develop
git checkout -b release/0.1.0
- Merge back into develop
git checkout develop
git merge release/0.1.0
git push
- Merge back into master
git checkout master
get merge release/0.1.0
git push
- Create tag from master
git checkout master
git tag v0.1.0
git push origin v0.1.0
- Delete feature branch
git branch -d feature/branch
git push origin --delete feature/branch
- Delete release branch
git branch -d release/0.1.0
git push origin --delete release/0.1.0
- Create branch from master
git checkout master
git checkout -b hotfix/branch
- Merge into master
git checkout master
git merge hotfix/branch
git push
- Merge into develop
git checkout develop
git merge hotfix/branch
git push
- Delete hotfix branch
git -d hotfix/branch
git push origin --delete hotfix/branch
- Create tag from master
git checkout master
git tag v0.1.1
git push origin v0.1.1