The HackUVic Website - Spring 2018; "What the World Needs Now"
- HTML / CSS / Javascript
- Bootstrap
- FontAwesome
- Github Pages
- Gulp
- SASS
- Surge
Clone the repository to your local computer in the directory you're currently in.
git clone https://github.com/uvicwebdev/HackUVic-19s.git
cd HackUVic-19s
For code quality and every member to be in the know, a review and approval process is in place:
- Feature branches: (ie. design-add_clouds or sponsors-reformat_layout)
- No merging directly into master unless absolutely needed.
- PRs must have two (2) approvals before being merged.
Scss files need to be converted to css first. To do that, we run gulp. (Note: css files will always be overwritten when running gulp.) To install all the dev dependencies for the first time:
npm install
To run gulp, go through an npm command. This command also automagically syncs any html/scss/js changes to the browser:
npm run build
// Creating a branch
git checkout -b new-branch-name_solving_issue
// Make changes and see what files differ from master
git status
// Add modified files one at a time
git add {$specific file names}
// OR (Danger, danger! Do this sparingly) add ALL files at once
git add .
Once small changes have been made, commit and push them.
git commit -m "Description of Changes"
git push origin new-branch-name_solving_issue
When all changes are made, create a PR and wait for the review/approval process.
# update your origin/* pointers
git fetch
# checkout the branch you’re merging in (assumes branch-name points to origin/branch-name)
git checkout branch-name
# rebase the whole branch onto master:
git rebase origin/master
# update origin/branch name to the new rebased head
git push --force-with-lease origin branch-name
# point your master branch to latest origin/master
git checkout master && git fetch && git reset --hard origin/master
# merge in the branch and force a ‘merge commit’
git merge --no-ff branch-name -m "Merge 'your-branch-name'"
# push your changes; this will automagically resolve the Github PR
git push origin master
# if no issue with merge, you can now delete the branch locally
git branch -d branch-name
# put this deleted branch back into origin
git push origin :branch-name