Presented by Bruce Sullivan | Academy of Art July 2013
I am Bruce Sullivan. I am…
Git is a Version Control System (VCS). VCS allows you to:
$ git push
$ git push
# Changes the directory.
$ cd
# Goes up one directory.
$ cd ..
# Changes to the "images" folder inside of "git-repo" inside of "Desktop"
$ cd Desktop/git-repo/images
# Lists all the files in the current directory
$ ls
# Lists all the files in the current directory...even hidden ones
$ ls -a
# Prints out the current directory
$ pwd
# Makes a directory called "brucerocks"
$ mkdir brucerocks
# Makes a blank file called "the-stars.html"
$ touch the-stars.html
# Secure Shell...zomg haxx
$ ssh username@yourserver.com
#
# Makes whatever folder youre in into a Git repository
$ git init
# Checks to see what files have changed since the last commit
$ git status
# Add all the changes and commit them
$ git commit -am "Commit message"
# Push all your changes to the github
$ git push origin
# Pull all your changes from the main repository
$ git pull origin
# Lists all the branches in the repository
#
$ git branch
# Goes to a certain branch
$ git checkout branchname
# Makes a new branch based off of the current one
$ git checkout -b branchname
# Merge the specified branch into the one you're in
$ git merge branchname
# Deletes specified branch
$ git branch -d branchname