Home Biography Projects Final Project
Archiving
Process

Uploading files to the archive using Git is simple.
steps:

  1. Download and run GitHub Shell
  2. Create an SSH key using the command
  3. When Prompted for a filename, press enter
  4. Type and repeat your password. Note that it will not show on the prompt when you type.
  5. You may now log in to your Git server using the password for the server (you should only have to do this once) and your password (you have to do this every login).
Now to upload files
  1. First change your directory using git cd [put your directory adress here]
  2. Update your directory and download new or modified files using git fetch
  3. Check if uou are up to date with git status
  4. If you are out of date, use git pull
  5. Check what files you have made changes to using git status
  6. Add files to your push indiviually using git add [filename] and you can add every change to your directory using git add . (that period is part of the command) Be careful with this last command, make sure you are 100% up to date or you will delete or otherwise damage other people's work
  7. Write a message about what you changed using git commit -m "write what you did/changed here"
  8. Send it to the server with git push

You should now have your files updated on the archive

Compressing Files
One important factor in using Git is that the size of the repo can increase exponentially if you are not careful with file sizes, and the significance of a few megabytes can be suprising. To avoid making people mad, I compress files, especially images. Images tend to be large, so I usually attempt to compress these first. I use two programs, Optimizilla and my phone's email compression (which works very, very well on jpegs).
Optimizilla is a free website that allows you to JPEG and PNG files. For JPEG files the website reduces the resolution and for PNG files it reduces the color count. These methods allow for amazingly small photos with little loss of detail. I use Optimizilla for larger screenshots larger than 500kb

My phone's email program can significantly reduce the size of images I send. Since my phone takes JPEG images, it reduces the resolution. My phone takes very large photos, and the sizes can really add up quickly. The photo below (ironically uncompressed by my phone) illustrates the magnitude by which it reduces files. Unfortunately, you need a large number of photos for the phone to compress effectively.