Linux and Git Command Cheat Sheet
Linux ls- l --> Lists the files in the current directory cd --> Changes directory mkdir --> Creates a new directory pwd --> Prints the current working directory touch --> Creates an empty file or updates its timestamp rm --> Deletes a file (use r for directories) cp --> Copies files (use r for directories) mv --> Moves or renames files and directories cat --> Displays the contents of a file grep --> Searches text in files
Git git init --> Initializes a new Git repository git status --> Shows the working tree and staging status git add --> Stages changes for the next commit git commit --> Saves staged changes as a commit git branch --> lists branches (-a for all -d to delete local) git checkout -b --> Creates and switches to a new branch