- To add all your changes for commit, run
git add .
- To commit all changes you added in step 1, run
git commit -m "<Insert commit message>"
After committing, follow the steps below.
- Always check for changes from the branch you checked out from before pushing. (let's say your branch was checked out from
master
. Check if there are any updates fromorigin/master
)