haydenull / logseq-plugin-git

A git plugin for logseq
MIT License
120 stars 24 forks source link

(Automatically) commit, but don't push #40

Open inktrap opened 1 year ago

inktrap commented 1 year ago

What about this usecase: you want to keep an editing history in git, but don't want to push it to a remote? How about two settings:

I know I can just ignore the git-push error message but it seems inflexible to force pushing. Also I know that there is https://github.com/gitwatch/gitwatch/ which would just automatically commit. But I still think the plugin would benefit if it supported more use cases.

haydenull commented 1 year ago

I think the build-in version control feature of logseq can meet your needs.

image
inktrap commented 1 year ago

Oh this is great … I saw the setting for this at some point, then didn't enable it, then attributed it to the git plugin and was surprised it was "not available" anymore ;D. I will test how well this works for me and in case it doesn't I would re-open the issue?

Or I can keep it open in case you think splitting commit and push is still a desireable idea for this plugin?

haydenull commented 1 year ago

I think this feature can be added as an optional configuration item to the plugin. Therefore, we can keep this issue in an open state.