Git Collaboration strategy
Part 1, Creating The Dev Branch
cd ~/dev
git clone https://github.com/GitUser/NameOfProject.git
cd NameOfProject
git checkout -b dev
git add .
git commit -m 'first commit'
git push -u origin dev
Part 2, Creating a Feature Branch
git fetch origin
git checkout dev
git checkout -b feat/name-of-feature
Part 3, Synching a Feature Branch With Dev Branch
git fetch origin
git checkout feat/name-of-feature
git pull origin dev
git add .
git commit -m 'feature branch synched with team branch'
git push -u feat/name-of-feature
Part 4, Merging a Feature Branch into Dev Branch
git fetch origin
git checkout dev
git merge feat/name-of-feature
git add .
git commit -m 'merged feat/name-of-feature into dev'
git push -u origin dev