developer@github
: fork repo: git://github/team-org/repoX -> git://github/developer/repoXdeveloper@workstation
: git clone git@github:developer/repoX.gitdeveloper@workstation
: git remote add upstream git@github:team-org/repoX.git
developer@workstation/master
: git pull upstream masterdeveloper@workstation/master
: git push origin master
developer@workstation/master
: git checkout -b us-1234-branchdeveloper@workstation/us-1234-branch
: hack, hack, hack, build, testdeveloper@workstation/us-1234-branch
: git add ...developer@workstation/us-1234-branch
: git commit -m "US#1234 ..." / "Defect#1234 ..."developer@workstation/us-1234-branch
: git push -u origin us-1234-branch
developer@github
: Check how many commits the fork is ahead with:This branch is 13 commits ahead of devops-dojo:master.
developer@workstation/us-1234-branch
: git rebase -i HEAD~13developer@workstation/us-1234-branch
: in editor, usepick
for the first commit andsquash
for the othersdeveloper@workstation/us-1234-branch
: save and close editor, then keep only one commit commentdeveloper@workstation/us-1234-branch
: git push -u origin us-1234-branch --force
developer@github/developer/repoX
: open Pull Request against upstream/masterpull_request_build@jenkins
: build/test Pull Request branch and post result to GitHubcommitter@github
: review Pull Request, comment, request rework
developer@workstation/us-1234-branch
: git pull upstream masterdeveloper@workstation/us-1234-branch
: rework, rework, rework, build, testdeveloper@workstation/us-1234-branch
: git add ...developer@workstation/us-1234-branch
: git commitdeveloper@workstation/us-1234-branch
: git push
pull_request_build@jenkins
: build/test Pull Request branch and post result to GitHubcommitter@github
: review new changes, commentcommitter@github
: merge Pull Requestmaster_build@jenkins
: build/test master branch
developer@workstation/us-1234-branch
: git checkout masterdeveloper@workstation/master
: git pull upstream masterdeveloper@workstation/master
: git pushdeveloper@workstation/master
: git branch -d us-1234-branchdeveloper@workstation/master
: git push origin --delete us-1234-branch
developer@workstation/master
: git remote updatedeveloper@workstation/master
: git reset --hard upstream/master --developer@workstation/master
: git push origin +master