0

I just did this here and deleted some of my first commits.
After the last step I got this
Your branch and 'origin/master' have diverged, and have 27 and 32 different commits each, respectively (use 'git pull' to merge the remote branch into yours)

I now want to push this to github so that only the 27 commits I currently have local are shown on github.

Do I only need to make a normal push?

(Other questions ask how to solve this Problem with merging but I want to throw away whats on the Server and overwrite it with my local datas so the first commits doesnt Exits anymore)

sirzento
  • 412
  • 1
  • 4
  • 18

1 Answers1

2

If you want to completely override the remote commits you may use git push -f (force push).

dan1st
  • 9,654
  • 6
  • 26
  • 57