rtyley / bfg-repo-cleaner

Removes large or troublesome blobs like git-filter-branch does, but faster. And written in Scala
https://rtyley.github.io/bfg-repo-cleaner/
GNU General Public License v3.0
10.84k stars 535 forks source link

I can't push my local repo to gitHub #436

Open sattamalhamidy opened 3 years ago

sattamalhamidy commented 3 years ago

sattams-MacBook-Pro:proj-sattam sattam$ git push origin main To https://github.com/sattamalhamidy/proj-sattam.git ! [rejected] main -> main (fetch first) error: failed to push some refs to 'https://github.com/sattamalhamidy/proj-sattam.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.

And I tried with git push origin main --force But there is still the same bug

I have ssh key and also credential has no issue. Hope someone saves my day.

Dnncha commented 2 years ago

Try git pull first.