cooperspencer / gickup

https://cooperspencer.github.io/gickup-documentation/
Apache License 2.0
972 stars 35 forks source link

How does gickup deal with force pushes to upstream (source)? #234

Open kravemir opened 5 months ago

kravemir commented 5 months ago

I am searching for a git backup tool, where I would have confidence, that:

Does gickup cover the above in any way?

One approach to solve it is to create a new branch with old contents, if default branch force pushed in source repository, and then reset copy to upstream. I.e.:

  1. create main-before-backup-[date-time] from last backed main (default branch),
  2. force push upstream/main to destination/main.

I don't care about specific solution, as long as history is preserved, and backup still continues to function, and doesn't break.

cooperspencer commented 5 months ago

It doesn't handle force pushes well yet. One of the next things on my todo list. But what you can do is to enable zip and keep on the local backup. That creates a zip file of your repository and keeps as many backups as you configure. That way you can keep the original state of your repository.

https://cooperspencer.github.io/gickup-documentation/configuration/destination_docu/local