-
-
Save dan987/7078329 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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