masterused for final deploymentstagingused for last checks before deploymentdevused to sync peer work before sending it out to the world. No PRs from forks from here onwards. You should always check out new branches from here.feat-<featurename>for any work in progress. Make sure branch name ends with#<issue number>if you want it to be tracked on waffle io. Will only take effect once branch is in organization repo. No need to squash or take any history ammending actions since these are for your personal use.
Whenever submitting a PR to largehrcollider, the name of the PR should be:
closes #<number> [optional description]
Examples of two valid PRs:
closes #23
closes #19 database schemas design
Edit .gitconfig:
git config --global push.default simpleSet up SSH on your machine:
Fork the repo.
Then,
# clone with ssh!
git clone <your_forked_copy>Add remotes
git remote add upstream git@github.com:largehrcollider/blyp.git
git remote add edu git@github.com:aryzing/blyp.git
git remote add eric git@github.com:ericdsmith/blyp.git
git remote add leo git@github.com:leov2000/blyp.git
git remote add steven git@github.com:steveprograms/blyp.gitCheckout dev branch:
git checkout devFirst Pull upstream branch
git checkout dev
git pull upstream devSecond Create a branch on your local machine
git checkout -b feat-amazing-ui-#135
git checkout -b feat-myFeature-#26 dev
#will create new branch from dev no matter where you are_Optional Push new branch to oganization repo to automatically set the issue as in progress.
Then, work on your branch until you feel like its a good time to send a PR
Third Push branch to your fork
git push origin <branch_name> # name required only first time
# or
git push origin
# can also push to upstream
git push upstreamFourth Submit pull request from most recent place you pushed to. If you don't remember, just push again! Organization name / dev (BASE) Your name / branch (TARGET)
Fifth Sync with organization master branch before working on new issue
git checkout dev
git pull upstream dev
git branch -d <branch_name> # will delete only if already mergedEvery morning:
- Pull dev and delete all merged branches
- Merge dev into all currently active branches, fix merge conflicts.