Zurück zum Ranking

charliie-dev/Logseq-Git-Sync-101

Shell

This repo aims to help Logseq users to sync their data with Git and GitHub.

gitlogseqgithubgit-hookstermuxworkingcopy
Sterne-Wachstum
Sterne
1.4k
Forks
105
Wochenwachstum
Issues
1
1k
Nov. 25Jan. 26Apr. 26Juli 26
README

Logseq-Git-Sync-101

GitHub Repo stars GitHub issues GitHub contributors GitHub code size in bytes

shell script Logseq

Description

This repo aims to help Logseq users to sync their data via Git and GitHub.

Why use Git + GitHub to sync Logseq graph?

Self Managed Sync Diagram, by @danzu

From the above diagram, it's pretty obvious that Git is the most robust way to sync your graph. iCloud is slow and problematic. Syncthing has no first-party iOS/iPadOS app, but it can be used there through a compatible third-party client such as Möbius Sync — see #40 for a community-tested setup.

However, Git is quite scary for non-programmers, so this doc is here to help!


🎩 Suit up

Please check Prerequisite and get yourself a cup of coffee ☕.

🤔 So how does this method work?

Please check Workflow.

Now you need another cup of coffee

For Windows users

Please check Windows.

For macOS users

Please check macOS.

For iOS/iPadOS users

Please check iOS/iPadOS.

For Android users

Please check Android.

For Linux users

Linux users click here If you are a Linux user, why are you still watching this repo? Shooo. 😎

Lol, just a joke. Take the steps in macOS section as reference if you need it.

💥 Omg, Something blows up

Please check FAQ.


Change log

  • 2026-06-11: Harden the git hooks. pre-commit now surfaces git pull failures with an actionable message instead of silently committing on a broken sync (and stays quiet on success); post-commit pushes the current branch via git push origin HEAD so repos whose default branch isn't main work, and reports push failures. Both fail fast on credential prompts (GIT_TERMINAL_PROMPT=0). The Android push-graph.sh no longer aborts before pushing when there is nothing new to commit. See the pre-commit / post-commit messages FAQ.
  • 2026-06-11: Issue cleanup. Fixed dead GitHub docs links (set-up-git) and the ssh -T git@github.com test command in Workflow/FAQ; added FAQ entries for SSH-over-443 (blocked port 22), HTTPS auth inside Logseq, Snap ssh-keys permission, and how pulls are automated; clarified the iOS Working Copy shortcut steps; added optional .gitattributes (merge=union) guidance; hardened git-hooks/pre-commit with merge/rebase guards; noted Möbius Sync for Syncthing on iOS; and listed related community tools in Home.
  • 2024-04-18: Add ssh config in Workflow to avoid Permission denied:(publickey) issue.
  • 2023-12-27: Fix For Android users Termux path to ~/storage/shared to avoid issue#34.
  • 2023-11-21: Update For iOS/iPadOS users (Working-Copy) for updated version of Working Copy.
  • 2023-10-21: Add deprecation warning at For iOS/iPadOS users (a-Shell-Deprecated)
  • 2023-10-12: Add Why and how to fix error: "fatal: not in a git directory"? to FAQ.
  • 2023-01-09: Add a-Shell support for iOS/iPadOS users as a free althernative.
  • 2022-11-01: Update Prerequisite, For macOS users, For Android users, FAQ wiki.

🪨 References

🎉 Acknowledgment

Credits to @danieltomasz^1, @Sawhney^2, @Caps^3, @Abulafia^4 @qwxlea^5 for the workflow build up. And credits to @danzu^6 for the incredible diagram!

FYI, those IDs are IDs in Logseq Discord Server if not specified.

Ähnliche Repositories
github/gitignore

A collection of useful .gitignore templates

Creative Commons Zero v1.0 Universalgitignoregit
175k82.3k
Chalarangelo/30-seconds-of-code

Coding articles to level up your development skills

JavaScriptnpmCreative Commons Attribution 4.0 Internationalawesome-listjavascript
30secondsofcode.org
128.5k12.5k
bregman-arie/devops-exercises

Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions

PythonPyPIOtherdevopsaws
83.3k19.8k
jesseduffield/lazygit

simple terminal UI for git commands

GoGo ModulesMIT Licensecligit
80.6k2.9k
sharkdp/bat

A cat(1) clone with wings.

Rustcrates.ioApache License 2.0command-linetool
59.8k1.6k
tiimgreen/github-cheat-sheet

A list of cool features of Git and GitHub.

MIT Licenseawesomeawesome-list
git.io/sheet
58k5.4k
go-gitea/gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD

GoGo ModulesMIT Licensegiteagolang
gitea.com
57k6.9k
gogs/gogs

The painless way to host your own Git service

GoGo ModulesMIT Licensegogsgo
gogs.io
47.7k5.1k
usebruno/bruno

Opensource IDE For Exploring and Testing API's (lightweight alternative to Postman/Insomnia)

JavaScriptnpmMIT Licenseapi-clientgit
usebruno.com
45.8k2.7k
cli/cli

GitHub’s official command line tool

GoGo ModulesMIT Licensegithub-api-v4cli
cli.github.com
45.4k8.7k
files-community/Files

A modern file manager that helps users organize their files and folders.

C#MIT Licensefluent-designxaml
files.community
44.4k2.8k
logseq/logseq

A privacy-first, open-source platform for knowledge management and collaboration. Download link: http://github.com/logseq/logseq/releases. roadmap: https://logseq.io/p/NX4mc_ggEV

ClojureGNU Affero General Public License v3.0knowledge-basegraph
logseq.com
44k2.7k