-
Notifications
You must be signed in to change notification settings - Fork 95
For Windows users
Charles Chiu edited this page Oct 14, 2022
·
1 revision
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 [email protected]:{your-username}/{your-reponame}.git
and 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
Yes
and 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&paste the
post-commit
andpre-commit
in.git/hooks
. (Note: this folder could be hidden) - Open Logseq and add the folder with
.git
as 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 nothiong goes wrong, you are a happy Logseq user!