...
clear
- clear the shell
Git cheat sheet
git init
- initialise git repo in a folder on your laptop
git add .
- adds all files to be staged for commit
git restore <filename>
- remove from staged
git rm --cache <filename>
- same as above
git checkout <filename>
- undo un-staged changes
git commit -m ""
- commit your changes with a message
git log
- history of commits
For remote:
git clone URL
- clone remote repo onto your laptop
git push
- push your changes to remote repo