- start from an uptodate master branch
git checkout mastergit pull origin master- do work and add, commit, and push
git add <file>git commit -m <useful message>git push origin <feature_branch_name>- IF A PULL REQUEST FROM ANOTER FEATURE IS MERGED TO MASTER
- commit changes to your feature branch
git add <file>git commit -m <useful message>- update you local master branch
git checkout mastergit pull origin master- update your feature branch with changes in master
git checkout <feature_branch_name>git merge master- handle merge conflicts if there are any
git commit -m "merged master"
- make sure you have no changes to commit
git statusgit add <file>git commit -m <useful message>- update you local master branch
git checkout mastergit pull origin master
- update your feature branch with changes in master
git checkout <feature_branch_name>git merge master- handle merge conflicts if there are any
git commit -m "merged master"- update your feature branch on github
git push origin <feature_branch_name>- create a pull request
- have a merge party
- walk over all the changes in your code with your team
- show them a demo of your branch and prove to them it works
- decited as a team to merge or not to merge the feature branch
- IF YOU MERGE THE FEATURE BRANCH EVERYONE SHOULD UPDATE THERE CURRENT FEATURE BANCHES