Let's assume that you are working on react-frontend repository.
And you have branches - master, develop, feature/auth, bugfix/fix-errors-on-social-auth, feature/RF-713.
The examples on the below table will be written with the above repository name and branch names.
| Command | Example | Description |
|---|---|---|
git init |
initializes your local directory as a new git repository. You must run this before you can commit any of your work. | |
git status |
shows the current status of your repo. It will show you if you have any work that is unstaged, what branch you are on, how many commits you are ahead of the master remote on github, and other useful things. | |
git diff |
shows you the changes in your unstaged code. |
