If we are behind the remote repository, first we need to fetch from the remote repository.
git fetchThen we commit the changes we have made in local repository and then we will rebase the origin to the master (make our commit header goes after the recent fetched header) i.e.
git add .
git commit -m "comments"
git rebase origin/masterNow we can push stuff to the repo by just do
git push