Git Essentials Cheatsheet
Here's a reference list of commonly used Git commands:
Commands related to a remote repository:
git clone git@github.com:USER-NAME/REPOSITORY-NAME.gitgit pushorgit push origin main
Commands related to the workflow:
git add .git commit -m "A message describing the changes"
Commands related to checking status or log history:
git statusgit log
The basic Git syntax is program | action | destination.
For example:
git add .is read asgit | add | ., where the period represents everything in the current directory.git commit -m "message"is read asgit | commit -m | "message".git statusis read asgit | status | (no destination).