CharlesChiuGit / Logseq-Git-Sync-101

This repo aims to help Logseq users to sync their data with Git and GitHub.
MIT License
1.06k stars 88 forks source link

How can apply the step 8 of guide for mac in case of linux? #31

Closed callmehanu closed 1 year ago

callmehanu commented 1 year ago

I followed the MacOS guide for Linux case but the step 8 show me that message in the terminal

image

CharlesChiuGit commented 1 year ago

remove "`" and "`"

callmehanu commented 1 year ago

hi @CharlesChiuGit I did it, but same error was showed. image

CharlesChiuGit commented 1 year ago

Aha, u forgot to cd into the the .git/hooks folder. It's a hidden folder, use ls -al and you'll see it.

callmehanu commented 1 year ago

yep sure... but that error keeps image

Do I have to create the pre-commit file manually?

CharlesChiuGit commented 1 year ago

u need to place the pre-commit & post-commit in .git/hooks lol. It's in here. Read the wiki carefully lol 🤣

callmehanu commented 1 year ago

@CharlesChiuGit really thanks ... sorry for my clumsiness, I just switched to Linux last month. Anyway... I finished all steps and seems have problems to sync

image

CharlesChiuGit commented 1 year ago

hmmm, that's weird. never seen that before. Could u tried disable all plugins and do a re-index in logseq to see how thing goes?

CharlesChiuGit commented 1 year ago

Also what's the theme? It looks cool!

CharlesChiuGit commented 1 year ago

I just switched to Linux last month.

Welcome to the penguin family! 🐧🐧🐧

callmehanu commented 1 year ago

Also what's the theme? It looks cool!

It is called Arc-Theme and is available in the logseq marketplace https://github.com/andyburris/logseq-arc-theme

CharlesChiuGit commented 1 year ago

@CharlesChiuGit really thanks ... sorry for my clumsiness, I just switched to Linux last month. Anyway... I finished all steps and seems have problems to sync

image

Wait a sec! I saw one weird thing! U link the .git folder as a graph folder! That's not possible! .git should be at the same level as the assets, journals, logseq, pages folders.

Instead, u should create the folder structure like this:

/home/{username}/Workspace/Logseq_db/.git

And the Logseq_db is where u should link to logseq as a graph. 圖片

圖片

Above folders are all under Logseq_db folder.

callmehanu commented 1 year ago

Yep... I started the process from scrath many times and yep... was my faullt set another directory. So thanks @CharlesChiuGit

CharlesChiuGit commented 1 year ago

So u can use logseq with git now?

callmehanu commented 1 year ago

Yep, finally! Tomorrow I will setup the process for android, this is the really hard part I think. 🙂

CharlesChiuGit commented 1 year ago

yeah, it's going to be a tough war lol.

feel free to open a discussion instead of an issue if u need more elaborate steps! https://github.com/CharlesChiuGit/Logseq-Git-Sync-101/discussions