Skip to content

Instantly share code, notes, and snippets.

@rodloboz
Created May 27, 2019 00:40
Show Gist options
  • Save rodloboz/38eac956dca43ef771fd2e94d6caa85f to your computer and use it in GitHub Desktop.
Save rodloboz/38eac956dca43ef771fd2e94d6caa85f to your computer and use it in GitHub Desktop.
Using Git to Collaborate as a Team
# before starting a new feature, ensure you have an updated master
(master) git pull origin master
# create a feature branch
(master) git checkout -b my_new_feature
# commit in your feature as you complete milestones
(my_new_feature) git add .
(my_new_feature) git commit -m "adds some changes to my project"
# push your branch to Github once the feature is done
(my_new_feature) git status
(my_new_feature) git add .
(my_new_feature) git commit -m "my feature is completed"
(my_new_feature) git push origin my_new_feature
# Visit Github to open a Pull Request
# Have another team member review your PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment