GIT COMMIT COMMANDS
git status
show modified files
git add file_name
add file to commit (stage)
git commit -m “enter message”
commit your staged content
git log
show commit history for current branch
git diff
show difference of changes after add
GIT BRANCH COMMANDS
git branch
show all branches
git branch branch_name
create new branch
git checkout branch_name
switch to another branch
git diff master_branch_name
compare current branch to master
git branch -D branch_name
delete branch
GIT REMOTE COMMANDS
git remote -v
show all remotes
git clone https_link
clone a repository from the link
git push origin branch_name
push branch to remote
git pull origin branch_name
pull branch from remote
TERMINAL COMMANDS
pwd
print working directory
ls
list directory contents
cd folder_name
change directory
cd ..
change to parent directory
mkdir folder_name
make directory
touch file_name
create file
open file_name
open file
Mac / Linux Cheatsheet

More Related Content

PDF
Windows Cheatsheet
PDF
Command cheatsheets mac
PDF
Command cheatsheets windows
PPSX
Advanced Web Development in PHP - Code Versioning and Branching with Git
PDF
Git in 5 Minutes
PDF
Version Control Systems with git (and github) as an example
PPTX
GDSC - Introduction to GIT
PDF
Git cheat-sheet
Windows Cheatsheet
Command cheatsheets mac
Command cheatsheets windows
Advanced Web Development in PHP - Code Versioning and Branching with Git
Git in 5 Minutes
Version Control Systems with git (and github) as an example
GDSC - Introduction to GIT
Git cheat-sheet

What's hot (15)

DOCX
Git cheatsheet
PPT
Introducción a Git
PDF
Git (Sistema Distribuido de Control de Versiones)
PPTX
Git and GitHub
PPTX
Extra bit with git
PPTX
Git basics
PDF
Github git-cheat-sheet
PDF
Github git-cheat-sheet
PPTX
Extra bit with git
PPTX
Git basic
ODP
Knolx master-slides
PDF
Git for developers
PDF
Atlassian git cheatsheet
PDF
Github git-cheat-sheet
PDF
Git 入门与实践
Git cheatsheet
Introducción a Git
Git (Sistema Distribuido de Control de Versiones)
Git and GitHub
Extra bit with git
Git basics
Github git-cheat-sheet
Github git-cheat-sheet
Extra bit with git
Git basic
Knolx master-slides
Git for developers
Atlassian git cheatsheet
Github git-cheat-sheet
Git 入门与实践
Ad

Similar to Mac Linux Commands cheatsheet (20)

PDF
test
PDF
Techmoneyguide
PDF
Git cheat-sheet-education
PDF
Git cheat-sheet-education
PDF
Github git-cheat-sheet
PDF
Github git-cheat-sheet
PDF
Github git-cheat-sheet
PPTX
Getting Started with Git: A Primer for SVN and TFS Users
PDF
Git_Commands_Cheat_Sheet. command for github
PDF
SVN 2 Git
PDF
Git training cheat sheet
PDF
Embedded Systems: Lecture 11: Introduction to Git & GitHub (Part 2)
PDF
Advanced Git Tutorial
PDF
git-commands-cheat-sheet-infopediya-com.pdf
PDF
Git Init (Introduction to Git)
PPTX
Lets Git Together
PPT
Git presentation
PDF
Git basics for beginners
PDF
Github git-cheat-sheet
PDF
Git: a brief introduction
test
Techmoneyguide
Git cheat-sheet-education
Git cheat-sheet-education
Github git-cheat-sheet
Github git-cheat-sheet
Github git-cheat-sheet
Getting Started with Git: A Primer for SVN and TFS Users
Git_Commands_Cheat_Sheet. command for github
SVN 2 Git
Git training cheat sheet
Embedded Systems: Lecture 11: Introduction to Git & GitHub (Part 2)
Advanced Git Tutorial
git-commands-cheat-sheet-infopediya-com.pdf
Git Init (Introduction to Git)
Lets Git Together
Git presentation
Git basics for beginners
Github git-cheat-sheet
Git: a brief introduction
Ad

Recently uploaded (20)

PDF
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PPTX
Module on health assessment of CHN. pptx
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
advance database management system book.pdf
PDF
semiconductor packaging in vlsi design fab
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
Complications of Minimal Access-Surgery.pdf
PDF
International_Financial_Reporting_Standa.pdf
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 1).pdf
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
Mucosal Drug Delivery system_NDDS_BPHARMACY__SEM VII_PCI.pdf
PDF
Empowerment Technology for Senior High School Guide
PPTX
Introduction to pro and eukaryotes and differences.pptx
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
Share_Module_2_Power_conflict_and_negotiation.pptx
Environmental Education MCQ BD2EE - Share Source.pdf
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
Module on health assessment of CHN. pptx
What if we spent less time fighting change, and more time building what’s rig...
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
advance database management system book.pdf
semiconductor packaging in vlsi design fab
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
Complications of Minimal Access-Surgery.pdf
International_Financial_Reporting_Standa.pdf
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 1).pdf
FORM 1 BIOLOGY MIND MAPS and their schemes
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
Mucosal Drug Delivery system_NDDS_BPHARMACY__SEM VII_PCI.pdf
Empowerment Technology for Senior High School Guide
Introduction to pro and eukaryotes and differences.pptx

Mac Linux Commands cheatsheet

  • 1. GIT COMMIT COMMANDS git status show modified files git add file_name add file to commit (stage) git commit -m “enter message” commit your staged content git log show commit history for current branch git diff show difference of changes after add GIT BRANCH COMMANDS git branch show all branches git branch branch_name create new branch git checkout branch_name switch to another branch git diff master_branch_name compare current branch to master git branch -D branch_name delete branch GIT REMOTE COMMANDS git remote -v show all remotes git clone https_link clone a repository from the link git push origin branch_name push branch to remote git pull origin branch_name pull branch from remote TERMINAL COMMANDS pwd print working directory ls list directory contents cd folder_name change directory cd .. change to parent directory mkdir folder_name make directory touch file_name create file open file_name open file Mac / Linux Cheatsheet