ryanboris
1/4/2018 - 11:29 AM

git

git basics

Cheatsheet
Here is a reference list of the most commonly used git commands (you might consider bookmarking this handy webpage). Try to familiarise yourself with the commands and then eventually remember them:

#Commands related to remote repository:

`git clone https://github.com/user-name/repository-name.git`

`git push origin master`


#Commands related to 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 git syntax works like this: _program | action | destination_

For example:

git add . is read like git | add | .
git commit -m "message" is read like git | commit -m | "message"
git status is read like git | status | (no destination)