layout | title | permalink |
---|---|---|
reference |
Reference |
/reference/ |
pwd
: print working directory
ls
: list directory
:
: - -l
: list file information
: - -lh
: list human readable file information
cd
: change directory
mkdir
: make directory
cat
: send file or files to output (in most cases, print to shell)
head
: output first parts of a file or files
tail
: output last parts of a file or files
mv
: rename or move a file or files. Syntax for renaming a file: mv FILENAME NEWFILENAME
cp
: copy a file or files. Syntax: cp FILENAME NEWFILENAME
>
: redirect output. Syntax with cat
: cat FILENAME1 FILENAME2 > NEWFILENAME
rm
: remove a file or files. NB: USE WITH CAUTION!!!
Git cheat sheet handouts:
- https://training.github.com/kit/downloads/github-git-cheat-sheet.pdf
- http://www.git-tower.com/blog/git-cheat-sheet/
git init
: creates a git repository
git status
: view the status of your files in the working directory and staging area
git add
: tells git to start tracking a file, or a series of files.
git commit
: commits 'saves' the staged snapshot to the project history.
git push
: commits the staged snapshot to the project history.
git log
: history of commits in reverse chronological order.
git diff
: shows changes made to files
git pull
: Merges upstream changes into your local repository
git remote add origin
: add a repository where changes will be stored -
- DavidChouinard/mrc_to_csv: 'Python script for converting MARC21 files to a saner format (CSV), originally designed for the Harvard Libraries MARC21 records'
- Process MARC records from Python
- edsu/git-intro: high level intro to git
- edsu/mirador
- edsu/microdata
- kcl/ddh
- dhtaxonomy/TaDiRAH
- OpenAPC/openapc-de
- JiscMonitor/allapc
- http://fbkarsdorp.github.io/python-course/
- https://galencharlton.com/blog/2008/03/code4lib-2008-lightning-talk-git-and-distributed-cataloging/
- http://book.openingscience.org/
- The help pages of github are a good place to start: https://help.github.com/
- Github has 'activities' which aim to explain how git works: https://guides.github.com/activities/hello-world/
- Some indepth but clear tutorials on using git. https://www.atlassian.com/git/tutorials
- A website aimed at historians but useful for librarians/those interested in Digital Humanities. The project uses Github and a programme called Jekyll to manage new lessons/the website. A useful place to see a non coding use of github in action: http://programminghistorian.org