SET-UP TO WORK WITH WORDGAME, IF YOU HAVE PUSH ACCESS (all students will be given access)
- Clone the Repository. git clone https://github.com/robrich22/wordgame.git
- Checkout "dev" branch. git checkout dev
PUSH YOUR CHANGES BACK
- git add .
- git commit -m "performed xyz change"
- git push origin dev
SYNC YOUR LOCAL REPO WITH REMOTE
- git pull origin dev
IF YOU DO NOT HAVE PUSH ACCESS TO THE PROJECT send me a message Slack. @robrich22
SET-UP TO WORK WITH WORDGAME Fork & Pull Strategy
- FORK THE REPOSITORY to your GitHub Account!
- Open the Command Line on Windows or Terminal on MAC
- Select the folder that you would like to use for the wordgame.
- git clone https://github.com/[insert your username]/WordGame.git
SET-UP REMOTES IMPORTANT
- git remote add upstream https://github.com/robrich22/WordGame.git
- additional help read https://help.github.com/articles/configuring-a-remote-for-a-fork/
SYNC YOUR FORK WITH MASTER REPO (Sync frequently, as there are always new updates)
- git fetch upstream
- git checkout master
- git merge upstream/master
Now your local copy is sync'ed with the UPSTREAM MASTER repo. You now need to push the updates to your github forked version of the REPO. You will use your updated local repo, to push the changes back to github. It's as simple as
- git push
MAKE SOME CHANGES TO REPO AND PUSH THEM TO GITHUB
- git add .
- git commit -m "I made xyz changes"
- git push origin master
- login to github, and issue pull request on http://github.com/robrich22/WordGame.git repo.
Macintosh
- I don't know because I don't own a mac.
- Switch to PC.
- I assume all the commands are the same, once you figure out how to open the terminal on a Mac.