Skip to content

For Windows users

charliie-dev edited this page Jun 10, 2026 · 2 revisions

After Git is set and a private repo is created:

  1. Go to your local drive (for example: D:\) and right-click on it.
  2. You should see Git Bash Here, click it.
  3. Type git clone git@github.com:{your-username}/{your-reponame}.git and hit enter.
  4. If it's your first time git clone something from GitHub, it will probably ask if you agree to authorized the connection, just type Yes and hit enter.
  5. After it's done, you should see a new folder with your repo name.
  6. Open the folder, there should have a hidden folder named .git.
  7. Copy the pre-commit and post-commit files from this repo's git-hooks/ folder (it's in the ZIP you downloaded in the Workflow step) into your graph's .git/hooks/ folder. (Note: the .git folder could be hidden.)
  8. Open Logseq and add the folder with .git as your new graph.
  9. Open Logseq > Settings > Version control > toggle on "Enable Git auto commit".
    1. If you don't want auto-commit to commit in the middle of writing, you can use the haydenull/ logseq-plugin-git to commit manually by yourself.
  10. Type something and wait few minutes to see if what you typed has also appear in GitHub.
  11. If nothing goes wrong, you are a happy Logseq user!

Clone this wiki locally