Create a file
touch testfile.txt
Git status
git status
Git add
git addgit add .is not good practice but works
Git commit
git commit -m "Add message to commit here"
Git push
git push
Modify a file
- Git add
- Git status
- Git commit
- Git push
Delete a file
- Git add
- Git status
- Git commit
- Git push
Git log
git logGit branche and checkoutgit branche -a
Our commit convention:
- "Add exercise 1.1.1", "Change Function for exercise 1.2." etc.
- Convention is important here! Use caps for the first word, always imperative, never past tense.
- And optional: Try to commit on every change and not on every whole Exercise sheet, it simplifies correction and rollbacks.
- See examples on how to do and to don`t xD