Monday, February 9, 2015

Setting Up GitHub and Pushing Changes (2/9)

Today I mainly worked on setting up GitHub on my Mac. I started out with installing Git (using Homebrew):

brew install git

Then I set it up with my username and email:

git config --global user.name "YOUR NAME"
git config --global user.email "YOUR EMAIL ADDRESS"

After that, I cloned the repository in my project's folder:

git clone "url" - replacing URL with our repo's url

Then I cd'd into the repository's new folder.

cd FXOS_Experimentation

... and committed all my files

git commit -A

... then pushed them all!

git push

It was fairly simple, and now I can commit and push whenever I like. Our repo is now available here.

I also got custom fonts working in my app!

1 comment:

  1. This is fabulous, on many different levels! You are learning a tool that is an essential part of the toolkit of any contemporary web professional, so you'll be glad you've done this on a personal level. It is going to make collaboration much easier. If we have a snow day tomorrow I'll make my own clone of your repo and experiment with what you have myself.

    ReplyDelete