https://maickii.github.io/educational_game/
This repository is used to host the website for our educational game. It mainly hosts hmtl files and other assets for the website.
Collaborators please follow these steps to get started.
git clone https://github.com/Maickii/educational_game.git
. step one will download all the files in the repo. All the files will be in a directory callededucational_game/
. Now change directory to that folder.- look around!
ls
through the directories and see whats around. You can also see the commit history. this is done bygit log
. withgit log
you will see the commits that has been made so far. if you want to see the actual changes of those commits you can dohash=<hash number for the commit>; git diff $hash^ $hash
. if you just want to look at the most recent commit you can dogit diff HEAD^
. - to make changes simply start by modifying whatever files you need to modify. Say I wanted to upload my profile pciture. i simply copy the the picture into the assets folder. like so:
cp /home/michael/michael_s_profile.jpg assets/
. now do agit status
. you should see the file you copied over in red. do agit add <file>
to add the file. to see that you added the file correctly do agit status
and the file should appear in green this time. you should always do a git add right before you commit changes, which brings us to the the next step. git commit -m "<some meaningful commit message>"
. this will commit the file you added. if you get an error among the lines of "Please tell me who you are" just run the commands it prompts you to run. once you done that try commiting the files again.- Once you commit your file you should now see the new update with
git log
. - all the changes up to now have been done locally. to upload to github with the new commits you can do
git push origin master
. it will ask for your github credentials. after that it should be uploaded to github. STAY AWAY FROMGIT PUSH ORIGIN MASTER --FORCE
!