I just finished working on a piece of code. Wanted to push and got the already famous:
hint: Updates were rejected because the tip of your current branch is
behind hint: its remote counterpart. Integrate the remote changes
(e.g. hint: 'git pull ...') before pushing again.
git push -f
in order to see the differences, first you need to fetch the commits from the origin repository:
git fetch origin
Now you can see the diffs (Assuming you are on the master branch)
git diff HEAD..origin/master
Now you are armed with the knowledge you seek to decide to
pushing your changes.