Staubgeborener / Klipper-Backup

Klipper-Backup is a script for manual or automated Klipper GitHub backups. It's Lightweight, pragmatic and comfortable.
https://klipperbackup.xyz
300 stars 58 forks source link

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

Closed DrFate09 closed 1 year ago

DrFate09 commented 1 year 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 1 year ago

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

Staubgeborener commented 1 year 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.