INPUT MY OUTPUT
Category: Web

Today, Greg Borenstein gave us an introduction to Git and Github – both amazing and necessary tools within the development world. My GitHub account can be found here. The Git workflow is as follows:

  1. Do work
  2. Save changes (commit)
  3. Share changes (push)
  4. Get changes (pull)
  5. Experiment (branch)
  6. See changes (diff)
  7. Combine changes (merge)
  8. Undo changes (revert)



General commands that are important to know are:
pwd  #where you are
cd  #move to file directory
open .  #opens in finder
mkdir #create a folder
ls #list content within the folder you’re looking at
man [command] #view manual of a specified commans (ex. man ls)
:q  #quit if you’re in edit mode
ls -la #show hidden files
which git #shows where git is installed on your machine
open .git/config #opens git config file in that folder

Now onto the interesting stuff.  How do you create a git repository, add, commit, and save locally:
git init #make git repository in current location
git status #show status of modifications
git add . #add everything in this folder to be commited
git commit -m “[message]” #commit to repository – this will create a number called a sha
If you have changed the file since your last commit you can use the following to view the difference, commit or revert
git log #views repository logs for this folder
git diff [sha1]..[sha2] #shows what has changed within the file
git revert [sha] #reverts to specific repository date
git reset — hard #undos the last git commit
git checkout -b [name] #creates a name associated with updates
git checkout [name] #brings you to how the file last looked like with that associated name.  This is good in order to toggle between two peoples updates

Lastly, we learned how to push and pull our Git to a GitHub repository:
First – got to your Github.com account and create new repository.  This will give you the information needed to go to your terminal and do the following:
git remote add [git@github.com:[username]/[repositoryName].git] #links the folder you’re in to the github folder
git add .
git commit -m “note”
git push #pushes files to the repository
If you’re pulling someone elses repository down into a local file you would do the following:
git remote add [name] https://github.com/[name]/[repositoryName].git #add the remote directory
git pull [name] master #pulls the files from external account
git pull #this is to pull from your own account

As an art piece I decided to create a website that will endlessly be stuck loading itself. The site can be found on www.sisyphonus.com. People waste endless hours viewing loading bars and I thought it would be appropriate to bring some self-consciousness into this viewing experience and the emotions it evokes. When a loading bar first begins it often progresses fairly fast and then slows down. During this process, most people experience a feeling of optimistic excitement to a pessimistic frustration. This website is meant to draw out the emotions of waiting and allow one to self-reflect on life and your own ability to stay level-headed throughout a process where the destination is unknown. This analogy can be compared to human life. I was also inspired by Waiting for Godot and The Myth of Sisyphus (which the title plays on: Sisyphus + onus (onus means “wait” in Latin)).
Mark and Me is my latest web project that I created as my Intro to Web final. I created the idea to make a social bookmarking site that is simple, less fussy, and gets down to the core of the product — bookmarking. The site allows users to create a password protected username where he/she can add and categorize bookmarks as desired. The site features publicly viewable bookmark lists, but are only privately available for editing. I plan to launch the site on Markand.Me shortly via heroku and will post a tutorial on using Heroku when everything is up and running. Currently you can view and use the site on my dev link here.