From d5291ce389a1adc780a52afeee32c8e32fb7adf4 Mon Sep 17 00:00:00 2001 From: KMSkelton Date: Sun, 7 Jun 2015 23:46:30 -0700 Subject: [PATCH] to test out of git training --- KMSkelton/git_notes.txt | 19 +++++++++++++++++++ KMSkelton/unix_notes.txt | 21 +++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 KMSkelton/git_notes.txt create mode 100644 KMSkelton/unix_notes.txt diff --git a/KMSkelton/git_notes.txt b/KMSkelton/git_notes.txt new file mode 100644 index 0000000..6edb309 --- /dev/null +++ b/KMSkelton/git_notes.txt @@ -0,0 +1,19 @@ +GIT COMMAND NOTES +git status : gives status of current branch +git branch : without branch name this shows the avail branches and indicates +which you're on. With the branch name, this creates that branch. +git checkout switches to the branch of + +git init creates a repositry of name + +git pull : fetches and merges remote repo +git push : pushes local to + +git merge : Merges specified branch into the current branch +git add or : stage changes in or for commit +git commit: commits files and directories stages with git add. +Message dialog will appear. -m "message" will add text to each committed +file in lieu of dialog. -a commits all changes for files that have been +added with git add + + diff --git a/KMSkelton/unix_notes.txt b/KMSkelton/unix_notes.txt new file mode 100644 index 0000000..897e88c --- /dev/null +++ b/KMSkelton/unix_notes.txt @@ -0,0 +1,21 @@ +UNIX commands +ls : lists all non-hidden files and folders. Also simply "l" +cd : changes directory +~/ represents home directory +cwd : current working directory +mv : move file +cp: copy file +mkdir: make directory +rmdir: remove a directory. may need "sudo rmdir -r" depending on permissions +rm: remove a file +chmod: change permission. Users/Groups/Other Read/Write/eXecute 4/2/1 +chown: change ownership +chgrp: change group + +touch - create file; or updates existing file to current timesatmp + + +less - file viewer; pseudo editor. +more - file viewer, stops at page/screen breaks +cat - dumps files content to screen +nano - editor