You may need to use: git push -f origin master How it worked for me: ➜ mfb-plm git:(master) git push origin master
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'email@example.com:myntra/mfb-plm.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first 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.
➜ mfb-plm git:(master) git push -f origin master
Enumerating objects: 383, done.
Counting objects: 100% (383/383), done.
Delta compression using up to 12 threads
Compressing objects: 100% (94/94), done.
Writing objects: 100% (383/383), 241.06 KiB | 80.35 MiB/s, done.
Total 383 (delta 238), reused 381 (delta 238)
remote: Resolving deltas: 100% (238/238), done.
+ a4a0df9...849eece master -> master (forced update)
... View more