Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 4 Current »

https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

Bash file manipulation cheat sheet

cd - change directory

cd .. - change to parent directory

pwd - print working directory

mkdir - make directory

rmdir - remove empty directory

rm - remove a file

rm -r - removes non-empty directory

ls - list content of directory

ls -a - lists also hidden files

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

  • No labels