Skip to content

For Windows users

Charles Chiu edited this page Oct 14, 2022 · 1 revision

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 [email protected]:{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&paste the post-commit and pre-commit in .git/hooks. (Note: this 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 nothiong goes wrong, you are a happy Logseq user!
Clone this wiki locally