Skip to content

This Git Cheatsheet provides a quick reference for some of the most commonly used Git commands. It covers the essential commands that developers use while working with Git on a daily basis.The Git Cheatsheet is an excellent resource for developers to improve their productivity while working with Git.

Notifications You must be signed in to change notification settings

deepankarvarma/Basic-Git-Commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Cheatsheet

This is a reference list of the most commonly used Git commands. (You might consider bookmarking this handy page). Try to familiarize yourself with the commands so that you can eventually remember them all:



Commands related to a remote repository:
git clone [email protected]:USER-NAME/REPOSITORY-NAME.git
git push or git push origin main (Both accomplish the same goal in this context)

Commands related to the workflow:
git add .
git commit -m "A message describing what you have done to make this snapshot different"

Commands related to checking status or log history
git status
git log

The basic Git syntax is program | action | destination.

For example,
git add . is read as git | add | ., where the period represents everything in the current directory;
git commit -m "message" is read as git | commit -m | "message"; and
git status is read as git | status | (no destination).

About

This Git Cheatsheet provides a quick reference for some of the most commonly used Git commands. It covers the essential commands that developers use while working with Git on a daily basis.The Git Cheatsheet is an excellent resource for developers to improve their productivity while working with Git.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published