We have two main branches in the git repository:
- master: for stable version of code
- dev: for development version of code
You can follow the following:
- Fork this repository to your own account.
- Clone this repository to your local machine.
- Import project from your local repo (you should import Landlords/Landlords as your project folder)
- Create a new feature branch (for example,
poker
) for your own development. You can do it in Eclipse. - You can edit code and do several commits on your own branch (for example,
poker
). - When it's time to push your modification to the Github, you can checkout to your local
dev
branch and merge/rebase from your own branch (for example,poker
). Then, fetch the latest remote branchesmaster
&dev
from upstream, that is, the original repo, to avoid your modification conflicting with others' code already push to theremote/dev
orremote/master
(you can find it in Eclipse. You can follow the session 4 of Github团队项目合作流程). Then, you can push the localdev
branch to your fork repo and make a pull request from yourdev
branch to thedev
branch of the original repository. This procedure is trying to make a clearer git commit history.
Note:
- if you would like to get the latest development version of code, please checkout to
dev
branch. Branchmaster
may not be the newest. - before you push, remember to fetch from the upstream first.
Recommanded softwares:
- Github Desktop
- SourceTree # You can visualize the git actions.
Highly Recommanded Readings: