fsnotes icon indicating copy to clipboard operation
fsnotes copied to clipboard

Git Sync: Push/pull not working (Self-hosted Gitea) and "Commit/Push" timer defaults to 1 hour minimum

Open appscaptain opened this issue 1 month ago • 0 comments

Description

Description First off, thank you for building such a fast and native note-taking tool. I am a user of the iOS app as well and am trying to migrate my full workflow to FSNotes to Git from iCloud. However, I’ve hit a roadblock setting up a reliable sync strategy between macOS and iOS using a self-hosted server.

My Use Case (Why I can't use iCloud or GitHub.com) I have a specific requirement where I need to share my notes database across multiple different macOS User Accounts on the same machine, as well as sync to my iOS devices.

Why not iCloud: iCloud is tied to a single Apple ID. Since I need to share these notes across different user profiles on my Mac, iCloud Drive is not a viable option.

Why not GitHub.com: These are many private notes and keys and other things that I don't want to expose on Github.

The Setup

Server: Self-hosted Gitea instance (accessed via Tailscale VPN).

Auth: HTTP Basic Auth with a Personal Access Token (embedded in URL).

Storage Path: /Users/Shared/FSNotes (Shared folder accessible by multiple users). With a .git folder inside /Users/Shared/FSNotes

Git Config: "Separate .git in project dir".

The Problem I assumed that FSNotes would treat a self-hosted Git remote similarly to how it handles iCloud—syncing changes relatively frequently. However, the app seems to refuse to sync automatically, forcing me to use the Terminal to move data.

I am facing two specific issues:

  1. The "Commit/Push" Timer UI Bug (macOS) In Settings > Git, I am trying to enable "Commit/Push every..." to ensure my notes reach the server.

I attempt to set it to 0 Hours, 1 Minute.

The Issue: The app automatically reverts the "Hours" field to 1.

The Result: I cannot configure the app to sync faster than once per hour. For a note-taking app, a 1-hour delay makes the sync unusable between my Mac and iPhone, as I am constantly looking at stale data.

  1. Auto-Sync / Cmd+S not triggering Push Even with the settings configured (albeit at 1 hour) or "Back up manually" unselected, saving a file does not seem to trigger a push.

I create a note and exit it.

I check my Gitea server: No changes.

I check git status in Terminal: The file is listed as Untracked or Changes not staged. The app is simply not running the git add/commit/push cycle.

  1. iOS Sync Context On the iOS app, I have configured the settings to "Pull (every 30 sec)". However, because the Mac is not pushing the data out, the iOS app never receives the new notes. The entire sync ecosystem is stalled waiting for the Mac.

Questions Branch Naming: Is there a hard requirement for the branch to be named "main", "master" or something else? Sync Interval: Is there a workaround to force the Mac app to check for changes every minute instead of every hour?

Verification (It works in Terminal) To confirm my network, Gitea token, and local permissions are correct, I ran the following in the FSNotes directory via Terminal:

git add . git commit -m "Manual sync" git push

This works perfectly every time. The file appears on Gitea immediately, and my iOS device successfully pulls it shortly after. This leads me to believe the issue is not with my environment/network, but that the FSNotes app is failing to trigger the git commands internally, or the 1-hour timer restriction is blocking the flow.

Environment Device: Apple Silicon Mac FSNotes Version: 6.10.2 (660) OS: macOS Sequoia 15.6 Git Remote: Gitea (HTTP)

Any advice on how to force the app to respect a shorter sync interval or trigger pushes on save would be greatly appreciated.

To Reproduce

See above please.

Expected behavior

No response

FSNotes version

6.10.2 (660)

macOS/iOS version

Sequoia 15.6

Additional context

No response

appscaptain avatar Nov 26 '25 12:11 appscaptain