Add to local memory first before commit (because you might not want to commit something that you dont’ want, so add something you want, and then commit)
>git add /your_resource_to_add
Commit to local repository, all the sources you have added
> git commit -a -m “Message to commit”
Then you need to pull rebase from server to match and see if there is conflict on this project.
> git pull –rebase
(if there is any error, you need to solve, if not then push to server)
I am not sure if you server install gerrit or not, the code review.
to push to server using
> git push
NOTE: if there is at least an error, you need to solve it, and then add again
> git add /add_any_files_you_have_solve
and to clear conflict by
> git rebase –continue
