SlideShare a Scribd company logo
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

What's hot (15)

DOCX
Git cheatsheet
synapsefre
 
PPT
Introducción a Git
Juan Antonio
 
PDF
Git (Sistema Distribuido de Control de Versiones)
TAWS
 
PPTX
Git and GitHub
Priya Nayak
 
PPTX
Extra bit with git
gdgjss
 
PPTX
Git basics
Denys Haryachyy
 
PDF
Github git-cheat-sheet
Augusto Gabriel Luna Bardales
 
PDF
Github git-cheat-sheet
vartmp
 
PPTX
Extra bit with git
Himanshu Agrawal
 
PPTX
Git basic
Akbar Uddin
 
ODP
Knolx master-slides
Mayank Bairagi
 
PDF
Git for developers
Hacen Dadda
 
PDF
Atlassian git cheatsheet
Abdul Basit
 
PDF
Github git-cheat-sheet
Abdul Basit
 
PDF
Git 入门与实践
Terry Wang
 
Git cheatsheet
synapsefre
 
Introducción a Git
Juan Antonio
 
Git (Sistema Distribuido de Control de Versiones)
TAWS
 
Git and GitHub
Priya Nayak
 
Extra bit with git
gdgjss
 
Git basics
Denys Haryachyy
 
Github git-cheat-sheet
Augusto Gabriel Luna Bardales
 
Github git-cheat-sheet
vartmp
 
Extra bit with git
Himanshu Agrawal
 
Git basic
Akbar Uddin
 
Knolx master-slides
Mayank Bairagi
 
Git for developers
Hacen Dadda
 
Atlassian git cheatsheet
Abdul Basit
 
Github git-cheat-sheet
Abdul Basit
 
Git 入门与实践
Terry Wang
 

Similar to Mac Linux Commands cheatsheet (20)

PDF
Git cheat-sheet-education
Avitesh Kesharwani
 
PDF
test
zwned
 
PDF
Techmoneyguide
Rockstartssl
 
PDF
Git cheat-sheet-education
ssuser0bad24
 
PDF
Github git-cheat-sheet
leo_priv00
 
PDF
Github git-cheat-sheet
Jae Nwawe
 
PDF
Github git-cheat-sheet
Adeel Munir
 
PPTX
Getting Started with Git: A Primer for SVN and TFS Users
Noam Kfir
 
PDF
SVN 2 Git
Marco De Stefano
 
PDF
Git training cheat sheet
Skander Hamza
 
PDF
Embedded Systems: Lecture 11: Introduction to Git & GitHub (Part 2)
Ahmed El-Arabawy
 
PDF
Advanced Git Tutorial
Sage Sharp
 
PDF
git-commands-cheat-sheet-infopediya-com.pdf
murad khan
 
PDF
Git Init (Introduction to Git)
GDSC UofT Mississauga
 
PPTX
Lets Git Together
Rakesh Jha
 
PPT
Git presentation
James Cuzella
 
PDF
Git basics for beginners
PravallikaTammisetty
 
PDF
Github git-cheat-sheet
jaehyok Song
 
PDF
Git: a brief introduction
Randal Schwartz
 
PDF
Git basics
GHARSALLAH Mohamed
 
Git cheat-sheet-education
Avitesh Kesharwani
 
test
zwned
 
Techmoneyguide
Rockstartssl
 
Git cheat-sheet-education
ssuser0bad24
 
Github git-cheat-sheet
leo_priv00
 
Github git-cheat-sheet
Jae Nwawe
 
Github git-cheat-sheet
Adeel Munir
 
Getting Started with Git: A Primer for SVN and TFS Users
Noam Kfir
 
SVN 2 Git
Marco De Stefano
 
Git training cheat sheet
Skander Hamza
 
Embedded Systems: Lecture 11: Introduction to Git & GitHub (Part 2)
Ahmed El-Arabawy
 
Advanced Git Tutorial
Sage Sharp
 
git-commands-cheat-sheet-infopediya-com.pdf
murad khan
 
Git Init (Introduction to Git)
GDSC UofT Mississauga
 
Lets Git Together
Rakesh Jha
 
Git presentation
James Cuzella
 
Git basics for beginners
PravallikaTammisetty
 
Github git-cheat-sheet
jaehyok Song
 
Git: a brief introduction
Randal Schwartz
 
Git basics
GHARSALLAH Mohamed
 
Ad

Recently uploaded (20)

PPTX
How to Add a Custom Button in Odoo 18 POS Screen
Celine George
 
PDF
I3PM Industry Case Study Siemens on Strategic and Value-Oriented IP Management
MIPLM
 
PDF
Genomics Proteomics and Vaccines 1st Edition Guido Grandi (Editor)
kboqcyuw976
 
PDF
Indian National movement PPT by Simanchala Sarab, Covering The INC(Formation,...
Simanchala Sarab, BABed(ITEP Secondary stage) in History student at GNDU Amritsar
 
PPTX
PLANNING FOR EMERGENCY AND DISASTER MANAGEMENT ppt.pptx
PRADEEP ABOTHU
 
PDF
Lean IP - Lecture by Dr Oliver Baldus at the MIPLM 2025
MIPLM
 
PPTX
Lesson 1 Cell (Structures, Functions, and Theory).pptx
marvinnbustamante1
 
PPTX
How to Create & Manage Stages in Odoo 18 Helpdesk
Celine George
 
DOCX
Lesson 1 - Nature and Inquiry of Research
marvinnbustamante1
 
PPTX
Iván Bornacelly - Presentation of the report - Empowering the workforce in th...
EduSkills OECD
 
PDF
TechSoup Microsoft Copilot Nonprofit Use Cases and Live Demo - 2025.06.25.pdf
TechSoup
 
PDF
Lesson 1 - Nature of Inquiry and Research.pdf
marvinnbustamante1
 
PPTX
Ward Management: Patient Care, Personnel, Equipment, and Environment.pptx
PRADEEP ABOTHU
 
PDF
The Power of Compound Interest (Stanford Initiative for Financial Decision-Ma...
Stanford IFDM
 
PPTX
Aerobic and Anaerobic respiration and CPR.pptx
Olivier Rochester
 
PPTX
Life and Career Skills Lesson 2.pptxProtective and Risk Factors of Late Adole...
ryangabrielcatalon40
 
PPTX
How to Configure Taxes in Company Currency in Odoo 18 Accounting
Celine George
 
PPTX
Building Powerful Agentic AI with Google ADK, MCP, RAG, and Ollama.pptx
Tamanna36
 
PPTX
How to Manage Wins & Losses in Odoo 18 CRM
Celine George
 
PPTX
Exploring Linear and Angular Quantities and Ergonomic Design.pptx
AngeliqueTolentinoDe
 
How to Add a Custom Button in Odoo 18 POS Screen
Celine George
 
I3PM Industry Case Study Siemens on Strategic and Value-Oriented IP Management
MIPLM
 
Genomics Proteomics and Vaccines 1st Edition Guido Grandi (Editor)
kboqcyuw976
 
Indian National movement PPT by Simanchala Sarab, Covering The INC(Formation,...
Simanchala Sarab, BABed(ITEP Secondary stage) in History student at GNDU Amritsar
 
PLANNING FOR EMERGENCY AND DISASTER MANAGEMENT ppt.pptx
PRADEEP ABOTHU
 
Lean IP - Lecture by Dr Oliver Baldus at the MIPLM 2025
MIPLM
 
Lesson 1 Cell (Structures, Functions, and Theory).pptx
marvinnbustamante1
 
How to Create & Manage Stages in Odoo 18 Helpdesk
Celine George
 
Lesson 1 - Nature and Inquiry of Research
marvinnbustamante1
 
Iván Bornacelly - Presentation of the report - Empowering the workforce in th...
EduSkills OECD
 
TechSoup Microsoft Copilot Nonprofit Use Cases and Live Demo - 2025.06.25.pdf
TechSoup
 
Lesson 1 - Nature of Inquiry and Research.pdf
marvinnbustamante1
 
Ward Management: Patient Care, Personnel, Equipment, and Environment.pptx
PRADEEP ABOTHU
 
The Power of Compound Interest (Stanford Initiative for Financial Decision-Ma...
Stanford IFDM
 
Aerobic and Anaerobic respiration and CPR.pptx
Olivier Rochester
 
Life and Career Skills Lesson 2.pptxProtective and Risk Factors of Late Adole...
ryangabrielcatalon40
 
How to Configure Taxes in Company Currency in Odoo 18 Accounting
Celine George
 
Building Powerful Agentic AI with Google ADK, MCP, RAG, and Ollama.pptx
Tamanna36
 
How to Manage Wins & Losses in Odoo 18 CRM
Celine George
 
Exploring Linear and Angular Quantities and Ergonomic Design.pptx
AngeliqueTolentinoDe
 
Ad

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