Staubgeborener / klipper-backup

Klipper backup script for manual or automated GitHub backups. Lightweight, pragmatic and comfortable.
https://klipperbackup.xyz
222 stars 46 forks source link

Updates rejected...remote contains work that is not local #18

Closed DrFate09 closed 7 months ago

DrFate09 commented 7 months ago

Trying to set up this plugin and when I try and push my files to my GitHub repo, I am faced with this error:

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.

Any thoughts on what I am doing wrong?

DrFate09 commented 7 months ago

UPDATE: I used git push --force to make it force the files to my repo.

Staubgeborener commented 7 months ago

Sadly i can't find your backup repository to check your commit history (which would help to give you an exact statement and not to guess) but glad you find it out by yourself. Exactly as it says: I think you had files in your repository which did not exist in your folder.