trilbymedia / grav-plugin-git-sync

Collaboratively Synchronize your Grav `user` folder hosted on GitHub, BitBucket or GitLab
Apache License 2.0
240 stars 58 forks source link

Reset local copy #153

Closed Selfedelics closed 4 years ago

Selfedelics commented 4 years ago

Reset local copy doesn't seem to work for me, and I am not sure how to go about debugging it. My use case is that I essentially want to reset the Grav side repo to accept or pull the current state of the repo, and just abandon and local git history and replace it with the remotes state.

I think the catch is, I want to be rid of the local git history when syncing with the new github repo so I am not pushing old commits. Is this what this button is for? Is there anything else that needs to be done to clear out the local git history?

I assumed this was what "Reset local copy" was used for, to tell the plugin to overwrite the local git repo with the remotes state, including commit history, etc...

Is there a forum or place to ask these questions, I can't find it. I am not sure if this is a bug or not. I get no error, I do get a success message, but no matter what I do, Grav overwrites the remote instead of pulling the "new" remote state in.

Any help appreciated.