MFAD+T Thesis Website 2014
Fork the repo to make your own copy of the project
Clone your repo, not the original project repo
Use Terminal or your GitHub client of choice
For Terminal, navigate to where you want and clone
cd /Applications/MAMP/htdocs
git clone https://github.com/YOUR_GITHUB_USERNAME/mfadt-thesis-website-2014.git
Simplify the folder name. WordPress wants it this way
mv mfadt-thesis-website-2014 mfadt
Set up upstream tracking. Verify by listing the remote sources
git remote add upstream https://github.com/mattfelsen/mfadt-thesis-website-2014.git
git remote -v
Set up WordPress and the database
Test WP Install
http://localhost:8888/mfadt
and make sure we're good to goThe general hierarchy is:
master -> develop -> develop-feature
master is what will be currently live on the mfadt site and is always 100% stable
develop will be our live development site and will be nearly stable
master and develop are never worked on directly. Always use a feature branch, which is then merged into develop, which is then merged into master
Start from develop. Pull in the latest updates/changes. Think of this as git pull
except you're pulling from an upstream repository
git checkout develop
git fetch upstream
git merge upstream/develop
Make your feature branch
git checkout -b develop-my-feature
(This command creates a branch called my-feature and then switches to that branch. The longer way to do it would be)
git branch develop-my-feature
git checkout develop-my-feature
Make all your changes. Add files, edit files, delete files, test. When you're ready:
git add file1.php
git add file2.php
git commit -m "I made this sweet thing"
Merge it into develop
git checkout develop
git merge --no-ff develop-my-feature
git branch -d develop-my-feature
git push
Note: you may get an error about tracking not set up for push. It will tell you a command to set remote tracking, similar to git push --set-upstream origin develop
. Go ahead and run that.
Submit a pull request on GitHub!
If you're performing these steps, they should most likely be done between steps 1 & 2 above, i.e. after merging the upstream changes into your local repo, but before creating a new branch to work on.