-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b931b94
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |