Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahsmith committed Feb 19, 2014
0 parents commit b931b94
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
24 changes: 24 additions & 0 deletions 11-18-2014.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Git: a model of versioning syncronization
GitHub: a centralized server running Git
Also has a wiki feature
Also has a bug tracker


git init initiate a repository
git add adds to staging area
git commit commit to ledger of changes

git push synchronize to the cloud

git clone
git pull gets the timeline from the cloud

the ledger is called the head.

"He advanced the head" changed the file, staged it, committed it, and pushed it to common ledger

git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/jonahsmith/dhLab.git
git push -u origin master
27 changes: 27 additions & 0 deletions 2-11-2014.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
DIGITAL HUMANITIES LAB--FEBRUARY 11, 2014
COMMAND LINE

pwd present working directory
ls list (the entries in the pwd)
cd [directory] change directory
cd .. back
cd - get back to the last place you were in
mkdir [directory name] makes a folder
touch [file] create a file
man [command] manual for some command
rm [file] removes file
rm -r [directory] remove recursively (NOTE: flags)
rm -ir [directory] remove interactively and recursively (NOTE: chaining flags together)
cp [file] [directory] makes a duplicate of [file] in [directory]
mv [file] [new name] rename
mv [file] [directory] move a file (NOT duplicate)
history

ADVANCED COMMANDS
pushd saves the directory you specify
popd pops to the directory you specified in pushd
ctrl-r search based on history (great for SSH)
ctrl-a beginning
ctrl-e end
grep
find

0 comments on commit b931b94

Please sign in to comment.