-
Notifications
You must be signed in to change notification settings - Fork 5
Git workflow for teams
Anthony Arendt edited this page Sep 6, 2019
·
2 revisions
$ git clone [email protected]:geohackweek/sample_project_repository.git
$ cd <path_to_repository>
$ git checkout -b <branch_name>
Crank away and work! When it is time to commit some changes.
$ git add .
$ git commit
$ git push origin <branch_name>
Create a Pull Request (PR) to the master
branch using the GitHub UI and ask a
teammate to review your changes. After the review is complete, merge the branch
in the UI with master.
A good practice is to also delete the branch after the merge is complete in the
GitHub UI.
# Go back to the master branch
$ git checkout master
$ git pull
$ git branch -d <branch_name>
Repeat the above steps from creating a branch, pushing to master, making a PR, pulling down to your local master, and deleting the branch for every chunk of work your are planning to do.