-
Make sure you are on your own branch with
git branch. When you first join the team, you will be assigned a branch named with your first name or preferred name. Please keep using this branch.git checkout -b <branch_name> origin/<branch_name>to start using your branch, e.g.,git checkout -b jesse origin/jesse. -
Merge in changes from the
devandmasterbranch. -
Warning:
git mergetoolmight be needed for resolving conflicts if you did no follow this flow exactly. Alternatively you could resolve the conflicts manually one file by one file.git fetch origin git checkout dev # if not created, git checkout -b dev origin/dev git pull git checkout master git pull git checkout jesse git merge dev -
Do your edits and commits and
git push. -
Create pull request (PR) merging from your own branch into
devbranch. Do more commits if you would like to. The later commits would be automatically included in the PR. Now all other team members should read your PR and comment their questions or suggestions for you. -
On weekly video hangout conference we will discuss each member's PR. You are expected to have reviewed all PRs before the conference and prepared questions for each PR.
-
After weekly meeting, Jesse will merge all the branches into
devwithin two days, i.e., if meeting was on Sunday, merge will be done before Tuesday. -
ONLY Jesse can merge from
devtomaster.
If you are interested in learning git and github, you are welcome to join Jesse in maintaining this repo and join the administrator team to do the tasks for merging all branches into dev branch weekly. The homeworks below should help you learn more about git.
- Create a repo in your github account and then create a
devbranch off frommasterbranch. Do some commits ondevbranch and push it to github. - Create a branch off from
devbranch (note important: not frommasterbranch) with your own name as the branch name. - Do edits and some commits in your own branch and push to github.
- Create a pull request (PR), merging from your own branch into
dev. Stop here and we will have a video/voice google hangout session to test that you fully understood the workflow. Send Jesse the link of your testing repo. - Merge the PR on the command line.
Mimic what happened in this tree of commits and merge here.
Share with us whether you resolved the conflict manually one file by one file or used a mergetool. Which mergetool did you use? We would love to see some screen shots of your mergetool. Did you like the mergetool you used?
- just google git cheatsheet
- progit book