TrojanHacks Fall 2104




Register for an account at github.com!

Sublime Text Editor 2 - http://www.sublimetext.com/
Notepad++ - http://notepad-plus-plus.org/
Atom - https://atom.io/
Hardcore: Vim, Emacs

http://bit.ly/githubhelp
Windows
OS X
$ brew install gitSet up git using github instructions
$ ls
list the files in the current directory
$ cd dir
move into this directory
$ cp src dst
copy src into the dst directory
$ mv src dst
move src into the dst directory
$ touch file
make an empty document called file
$ mkdir dir
make a directory called dir
$ rmdir dir
remove the directory called dir
$ rm file
remove file (permanently!)
$ less file
print the contents of file out to console
. means the current directory
.. means one directory above the current directory
~ means the "home" directory
* wildcard$ cd ~
$ mkdir demo
$ cd demo
$ ls
$ touch fileA
$ ls
$ touch fileB
$ mkdir dirA
$ mkdir dirB
$ ls
$ mv fileB dirB
$ ls
$ cp fileA dirA
$ ls
$ ls dirA
$ ls dirB
$ rm dirB/fileB
$ ls dirB
$ rmdir dirB
$ ls
$ cd dirA
$ ls
$ cd ..
$ ls
$ cd ..
$ lsWhat does any of this do? Let's use the terminal and find out!

http://bit.ly/githubrepo


$ git pull
$ git add XYZ
$ git status
$ git commit -m "MESSAGE"
$ git pushCommit often!

