When you start working make sure you are on the main branch (master or develop).
git checkout master
Make sure your main branch is up to date.
git pull
Create a new branch you will work in.
git checkout -b your-branch
Do some changes. After changing what you need check that nothing unexpected is being commited.
git diff
Stage changes for commit.
git add .
Commit changes.
git commit -m "message explaining what you changed"
Push changes to a new remote branch.
git push -u origin your-branch
You can push more changes to the same branch later with just git push.
git push
can we add: git commit -m "message explaining what you changed" --amend
:)