commands |
description |
git pull |
this command is used to pull changes from github server to local computer. Eg: If your teammate has pushed any new changes to main branch, you might require to pull frequently to get those changes to your branch from main branch |
git diff |
this command is used to see what changes you have made that is different from github server(uncommitted changes). |
git status |
this checks if there is any untracked changes that has to be taken care of. |
git checkout |
this deletes the recent change/ reverse it to previous version. |
git add |
this adds the change to the staging area prepping it for commit. |
git commit |
this command is used to put a commit message for the change made. |
git push |
this command is used to push changes from local to github server. |