open-knowledge icon indicating copy to clipboard operation
open-knowledge copied to clipboard

[Feature]: Git commit & push button for easy to access

Open alpemreelmas opened this issue 3 months ago • 12 comments

What problem are you trying to solve?

To sync after any update of the knowledge you have to open/switch to terminal or any ide however workflow that person uses, and run git commands to sync changes. I think we can add a button to sync (commit changes and push - person preference)

Proposed solution

I think, we can implement basic git features

  • commit
  • history
  • push

In this way, we would be able to commit push and see the history if needed. Rest commands can be used through terminal as same as right now. Even history could be removed and only we can support

  • commit
  • push

This can be places as popup and simple, easy to access button somewhere.

Area

GitHub sync

Alternatives considered

We can keep it as it is.

alpemreelmas avatar Aug 13 '26 23:08 alpemreelmas

Image

hey @alpemreelmas, there is a manual sync button in the top right of the app, is that what you're looking for?

robert-inkeep avatar Aug 14 '26 07:08 robert-inkeep

Image

hey @alpemreelmas, there is a manual sync button in the top right of the app, is that what you're looking for?

Isn't it for pulling latest version?

As far as I know there is not commit and push button. But if it also does commit and push, then yes

alpemreelmas avatar Aug 14 '26 07:08 alpemreelmas

only if in the follow mode will it pull only.

but if you're on the full mode, the sync pulls from the remote + pushes your changes

robert-inkeep avatar Aug 14 '26 07:08 robert-inkeep

@robert-inkeep what if we are not in full mode and we are in follow but we also want to push our changes. We need to switch to terminal. I'm suggesting to implement and bring that feature without leaving openknowledge and keep the sync as we want

alpemreelmas avatar Aug 14 '26 11:08 alpemreelmas

i see. to be exact, without going to terminal, does this "workaround" work?

normally you are in follow mode. but to manually sync, you briefly toggle to full and press the sync button. then return to follow mode.

robert-inkeep avatar Aug 14 '26 11:08 robert-inkeep

Oh okay, that's interesting but it can solve my issue to be honest.

I can use with this way. Are you planning to implement this feature? If yes, I can do it, if not, then I can live with that switching full mode and sync button :)

alpemreelmas avatar Aug 14 '26 11:08 alpemreelmas

yeah, we'll take on this one. i'll keep this issue open and i appreciate the feedback.

robert-inkeep avatar Aug 14 '26 11:08 robert-inkeep

Can I implement it?

alpemreelmas avatar Aug 14 '26 12:08 alpemreelmas

you're more than welcome to open a PR 😄, but we are already working on a few items related to this and will consider this in any case.

and one piece of this UX to be mindful of is how to resolve conflicts when they happen

robert-inkeep avatar Aug 14 '26 12:08 robert-inkeep

Thank you 😄, tbh when conflict occurs, either we can send them terminal to solve it with git commands ( probably as they do rn), or we can open diff panel like vscode and help them to solve it.

alpemreelmas avatar Aug 14 '26 12:08 alpemreelmas

This is fixed, and it is going out now on the Open Knowledge beta channel as v0.63.0-beta.12. Thanks for the report. It will reach the stable channel in an upcoming release, and we will follow up here when it does.

Git sync gets a rebuilt control panel and mode-independent manual actions.

The sync popover now carries a three-way mode selector — Manual, Auto (Pull only), Auto (Pull and Push) — plus manual Pull, Push, and Pull and Push buttons that behave identically in every mode: the mode only chooses what runs on a schedule. Pull never commits your in-progress work in any mode; Pull and Push runs the classic sync (commit, push, merge). The panel's status section lists which files a pull would bring in, which files a push would include, and which changed files sit outside OpenKnowledge's commit scope and would be skipped — refreshed by a read-only fetch when the panel opens. Settings and the enable dialogs use the same mode names.

How often the automatic modes run is now configurable per machine: Settings → Sync → Advanced adds Check for updates every and Push my edits every (30 seconds to 1 hour), stored as autoSync.pullIntervalSeconds and autoSync.pushIntervalSeconds in the project-local config. When a pull is blocked because your uncommitted local changes overlap an incoming update, the popover now lists the blocked files under **Changed here and o...

Covers PRD-8031.

To try it ahead of that, download the v0.63.0-beta.12 beta from the releases page once its installers have finished uploading.

github-actions[bot] avatar Aug 25 '26 00:08 github-actions[bot]

This shipped in Open Knowledge v0.63.6. Thanks for the report.

Git sync gets a rebuilt control panel and mode-independent manual actions.

The sync popover now carries a three-way mode selector — Manual, Auto (Pull only), Auto (Pull and Push) — plus manual Pull, Push, and Pull and Push buttons that behave identically in every mode: the mode only chooses what runs on a schedule. Pull never commits your in-progress work in any mode; Pull and Push runs the classic sync (commit, push, merge). The panel's status section lists which files a pull would bring in, which files a push would include, and which changed files sit outside OpenKnowledge's commit scope and would be skipped — refreshed by a read-only fetch when the panel opens. Settings and the enable dialogs use the same mode names.

How often the automatic modes run is now configurable per machine: Settings → Sync → Advanced adds Check for updates every and Push my edits every (30 seconds to 1 hour), stored as autoSync.pullIntervalSeconds and autoSync.pushIntervalSeconds in the project-local config. When a pull is blocked because your uncommitted local changes overlap an incoming update, the popover now lists the blocked files under **Changed here and o...

Covers PRD-8031.

To pick it up, update to the latest desktop app from the releases page.

github-actions[bot] avatar Aug 26 '26 10:08 github-actions[bot]