Git rejected non-fast forward
<p>What I have locally are the correct stuff, meaning I just want to overwrite everything at group master, if there were changes make at group master by another member in my group. Does anyone know how I can do this? I'm getting the following error. (I simply want to push what I have to group master, ignoring all the changes made at group master by other members.)</p>

<p>It mentions "integrate remote changes", but I don't want to do that. I don't want any of the remote changes.</p>

<pre><code>  $ git push group master

To git@github.com:name/groupNum.git
 ! [rejected]        master -&gt; master (non-fast-forward)
error: failed to push some refs to 'git@github.com:name/groupNum.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.




 $ git branch
  1
  some_name
  master
  random
* project2
</code></pre>

<p>When I did git push -f group master with a commit message, instead of pushing what I want to push (all of my changes) with my commit message, it just does the following, which reverts our repo to a commit a few months ago: "Revert "Revert "finished task 2 "" This reverts commit 86##6e9. " Why the "revert...", which is not even my commit message. How can I fix this now?</p>