Skip to content

Instantly share code, notes, and snippets.

@octosteve
Created October 17, 2013 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save octosteve/7025698 to your computer and use it in GitHub Desktop.
Save octosteve/7025698 to your computer and use it in GitHub Desktop.
Notes from the install fest. Anything that starts with a '#' sign is for you to read
# We created a folder to house our code for the class
mkdir code
# We changed into that directory
cd code
# We verified git was installed
which git
# After forking on github, we cloned OUR copy
git clone https://github.com/StevenNunez/BEWD_NYC_5.git
# We checked what folders are in our code folder. Cloning creates a folder named after the repository.
ls
# Change into that directory
cd BEWD_NYC_5
# See what we have. All the GA files!
ls
# We add an link to the GA version of this repository and give it the name of "instructor"
git remote add instructor https://github.com/ga-students/BEWD_NYC_5.git
# This will show you all of the remote links you have set up. We should only have instructor and origin.
# Github automatically sets one called origin that points to the address you cloned from.
git remote show
# Pull the latest changes from the instructor's master branch.
git pull instructor master
# Change into the install folder and open the PreWork file to note the change I made on github!
cd 00_Install_Fest
ls
open PreWork_BEWD.md
# push these changes to OUR repository
git push origin master
# Shows you your commit history. Press q to exit
git log
# Shows you how to use the remote command. Press q to exit
git remote --help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment