syllabus

Syllabus for the Programming I course

View on GitHub

Git Cheat Sheet

Command Purpose Example
help Lists available git subcommands git help
init Create an empty Git repository or reinitialize an existing one git init
clone Clone a repository into a new directory git clone https://github.com/libgit2/libgit2
add Add file contents to the index git add thisfile.txt
rm Remove files from the working tree and from the index git rm thisfile.txt
mv Move or rename a file, a directory, or a symlink git mv thisfile.txt thatfile.txt
commit Records changes to the repository git commit -m "adding new file"
diff Shows changes between commits, commit and a working tree git diff
log Shows commit logs git log
push Updates remote references git push
pull Integrate with another repository git pull
status Shows the working tree status git status