An introduction to Git and GitHub in two parts:
- Git and GitHub: Solo Usage (html slides, pdf slides)
- Git and GitHub: Collaborative Usage (html slides, pdf slides)
Useful cheat sheet of Git commands from GitHub
Command/alias | What it does | Example |
---|---|---|
ls |
list directory contents | ls |
cd |
change directory | cd src/images |
pwd |
print working directory (i.e., see where you are in the file system) | pwd |
rm |
remove (delete) file | rm notes.txt |
mkdir |
make directory | mkdir data |
cp |
copy file | cp notes1.txt notes1-copy.txt |
touch |
create empty file | touch bibliography.txt |
.. |
alias for parent directory | cd ../images |
~ |
alias for home directory (C:\Windows\Users\username or /home/username ) |
cd ~/projects/ |