Git Collaboration strategy
Part 1, Creating The Dev Branch
cd ~/devgit clone https://github.com/GitUser/NameOfProject.gitcd NameOfProjectgit checkout -b devgit add .git commit -m 'first commit'git push -u origin dev
Part 2, Creating a Feature Branch
git fetch origingit checkout devgit checkout -b feat/name-of-feature
Part 3, Synching a Feature Branch With Dev Branch
git fetch origingit checkout feat/name-of-featuregit pull origin devgit 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 origingit checkout devgit merge feat/name-of-featuregit add .git commit -m 'merged feat/name-of-feature into dev'git push -u origin dev