- Fork the repo
- Clone the repo
$ git clone https://github.com/<profile>/wilmerlab.github.io.git
- Create a branch
$ git checkout -b <branch-name>
- Make and test changes to website (can run the website locally and see changes in real time)
- Stage changes
$ git add <files added and changed>
- Commit changes
$ git commit -m "Descriptive commit message"
- Push changes
$ git push origin
. This will most likely tell you that upstream branch was not recognized, but it will give you the command to execute to set the branch in the remote:git push --set-upstream origin <branch-name>
- In GitHub, open a pull request in the WilmerLab/wilmerlab.github.io repo (not your fork of the repo).
Here is what I did on my Mac Book Pro running High Sierra and Brew. Jekyll is a ruby application. Gem is basically a ruby version of pip.
brew install ruby
brew update ruby
after cloning from github into a new window
cd ~/workspace/wilmerlab.github.io
gem install bundler
bundle install
bundle exec jekyll serve