You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, a user may want to push to GitLab simply to trigger a around of testing in GitLab CI, in which case it'd be nice if it's possible to clean up remote branches/tags as well so that users don't need to do this manually.
The text was updated successfully, but these errors were encountered:
I believe you're asking for one-off user triggered branch deletion? I don't think that's a use-case git-sync will support at this time. You can look into actions/checkout which lets you checkout gitlab repo and run git commands to delete branches.
For example, in the source repo I've got master and feature branches. After merging feature into master, I often delete the feature branch in both local and source repos. But after pushing it to source repo, git-sync doesn't delete the feature branch in destination repo. Over the time I get more and more stale branches in the destination repo.
So I wonder if it's possible to trigger git-sync on delete as well and purge those branches/tags? Of course I can do this using actions/checkout and Git commands but imho this feature sounds like a good complement to this project.
I agree adding an option to force sync all refs while deleting all the missing refs would be a good feature to have (to keep repos in both places clean). Reopened and PR welcome!!
For example, a user may want to push to GitLab simply to trigger a around of testing in GitLab CI, in which case it'd be nice if it's possible to clean up remote branches/tags as well so that users don't need to do this manually.
The text was updated successfully, but these errors were encountered: