Add a branch, locally, to your forked repository to work on your changes.
Git repositories use branches to isolate work when needed. It's common practice when working on a project or with others on a project to create a branch to keep your working changes in. This way you can do your work while the main, commonly named 'master', branch stays stable. When the work on your branch is finished you merge it back into the 'master' master branch.
The diagram below shows how you can branch off of your 'master' branch, do work and the merge those changes back into 'master'. You can even branch off of a branch if you need to, the 'master' branch doesn't have to be the base.
For a great visualization on how branches work in a project, see this GitHub Guide: guides.github.com/overviews/flow
GitHub will automatically serve and host static website files in branches named 'gh-pages'. This free service is called GitHub Pages. Since the project you forked creates a website, its main branch is named 'gh-pages' instead of 'master'. All repositories that have a 'gh-pages' branch with website files can be found, live online, using this pattern for the URL:
http://githubusername.github.io/repositoryname
When you create a branch, Git copies everything from the current branch you're on and places it in the branch you've requested be made.
While still inside of your local 'patchwork' repository, type git status
to see what branch you're currently on. Git should reply that you're on the 'gh-pages' branch.
Now create a new branch and name it "add-<username>", where 'username' is your username. For instance, "add-jlord". Branches are case-sensitive so name your branch exactly the way your GitHub name appears.
git branch <BRANCHNAME>
Now you have a branch with a new name that is identical to 'gh-pages'.
To go into that branch and work on it you checkout a branch. Go on your new branch:
git checkout <BRANCHNAME>
Back in your text editor:
Go through the steps for checking in a project:
git status
git add <FILENAME>
git commit -m "commit message"
Now push your update to your fork on GitHub:
git push origin <BRANCHNAME>
Make sure that you're pushing to 'origin', which is your fork's address on GitHub. If you get an error check to make sure you have your remotes set up correctly with 'origin' pointing to your fork and 'upstream' pointing to the original repository: git remote -v
The file you create should inside the existing 'contributors' folder in the Patchwork repository. If you put it somewhere else, simply use Finder or Windows Explorer to move your file into the folder. You can check git status
again and you'll find it sees your changes. Stage and then commit "all" (-A) of these changes (additions and deletions) with the commands below.
git add -A
git commit -m "move file into contributors folder"
The branch name should match your user name exactly. To change your branch name:
git branch -m <NEWBRANCHNAME>
When you've made your updates, verify again!
git checkout -b <BRANCHNAME>
git branch <BRANCHNAME>
git checkout <BRANCHNAME>
git branch
git branch -m <NEWBRANCHNAME>
git status