-
Notifications
You must be signed in to change notification settings - Fork 106
For Windows users
charliie-dev edited this page Jun 10, 2026
·
2 revisions
After Git is set and a private repo is created:
- Go to your local drive (for example:
D:\) and right-click on it. - You should see
Git Bash Here, click it. - Type
git clone git@github.com:{your-username}/{your-reponame}.gitand hit enter. - If it's your first time git clone something from GitHub, it will probably ask if you agree to authorized the connection, just type
Yesand hit enter. - After it's done, you should see a new folder with your repo name.
- Open the folder, there should have a hidden folder named
.git. - Copy the
pre-commitandpost-commitfiles from this repo'sgit-hooks/folder (it's in the ZIP you downloaded in the Workflow step) into your graph's.git/hooks/folder. (Note: the.gitfolder could be hidden.) - Open Logseq and add the folder with
.gitas your new graph. - Open Logseq > Settings > Version control > toggle on "Enable Git auto commit".
- 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.
- Type something and wait few minutes to see if what you typed has also appear in GitHub.
- If nothing goes wrong, you are a happy Logseq user!