navigate to the folder where you want to store the folder with the Archive
for example
cd ~/Desktop/
Clone the Archive
git clone git@git.fabacademy.org:fabacademy2016/fablabbcn2016.git
Input your name (change John Doe to your name)
git config --global user.name "John Doe"
and email (change johndoe@example.com to your email)
git config --global user.email johndoe@example.com
Now you should have a folder "fablabbcn2016" which contains all the websites of students in Barcelona
for example
~/Desktop/fablabbcn2016
students
4
19
20
...
docu
index.html
Hovering over the link with your name on the
students-page should reveal your number:
This is the number of your folder under fablabbcn2016/students/
where you should put the index.htm of your website.
Update Archive
Check the file-size of your folder! You should commit 1-2MB per week. Not more!
Run the following command (Terminal or GitBash) in your folder to see folder and file-sizes:
du -sk * | sort -n
After 20 classes you would accumulate about 30MB.
Keep pictures under a width of about 900px.
If you want additional bigger images or big files that are not essential for repeating your process, host them on a different server and link to them.
e.g. archive.org / google drive
Each time you want to update your website, you should go through the following commands:
cd ~/Desktop/fablabbcn2016
git pull
<change files>
git status
git add .
git commit -m "<commit message>"
git push
<change files> means that at this point you copy/replace the files in your folder
<commit message> write a meaningful commit message
If something goes wrong, restart from the beginning (git pull).
If you end up in Vim-Editor, quit without saving by typing:
:q!
Your website might not update in your Browser until you clear the cache:
clear cache
refreshyourcache.com
If you still get error messages, study git or write an Email to your instructor.