Skip to content

ms328/git-linux-cheatsheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published