Managing git repositories can be hard, so we've laid out a few simple guidelines to help keep things organized.
-
Create a Pull Request; instead of pushing directly to
master
. -
Give your branch a descriptive name like
dh-network-fix
instead of something ambiguous likemy-branch
. -
Write a descriptive summary in the comment section on Github.
-
Don't merge your own Pull Request; send it to your teammate for review.
-
If you think something could be improved: write a comment on the Pull Request and send it to the author.
-
Make sure your branch is based off
master
, and not some other outdated branch. -
Don't reuse branches. Once they're merged to
master
you should consider deleting them. -
Prefer squash when doing a Pull Request, as it simplifies the commit history.