We can run this to push any commits you’ve done back up to the server
$ git push < remote> < branch >
This above command will works if we cloned from a server where you have write access and noone is pushed in meantime. And if you and someone else clone at the same time and they push upstream and then you push upstream, your push will rightly be rejected. Below is the syntax for the same:-
$ git push origin master