Skip to content

🪜 Workflow

SkyLull edited this page Apr 18, 2024 · 8 revisions

Set up Git

This is like typing in the account/password, so make sure you follow ALL the steps in set-up-git.

NOTE: SSH-key without passward is preferred to use in this workflow, PLEASE set it properly, PLEASE. Connecting over SSH Section Link

NOTE: Some OS doesn't start ssh-agent by default. Here are some references to start it by default.

Then you need to add a config telling ssh to use the credential you just created!

Here's how it work:

  1. Add a file named config (without any extension) under ~/.ssh
  2. Edit it using your preferred text editor, add following text into the file
# github
Host github.com
    User git
    HostName github.com
    PreferredAuthentications publickey
    IdentityFile <path to your private key file>
    ServerAliveInterval 300
    ServerAliveCountMax 10
  1. Test if it worked using command
ssh -T github.com

Create a private repo

This is like creating a folder in GitHub, follow create-a-repo to create a private repo.

NOTE: If you create a public repo, that means everyone on GitHub can see what you put in there. You don't want that, do you?

Add .gitignore in your repo (Optional)

In your repo page > Add file > Create new file > Name your file: .gitignore. Type those:

logseq/bak/
logseq/.recycle

NOTE: For users before 0.8.11, you can choose to add logseq/pages-metadata.edn in .gitignore or upgrade to 0.8.11 and remove logseq/pages-metadata.edn since it's deprecated. ref

Download this repo, for computer users

Click the green Code button of this repo and Download ZIP, then unzip it for later use.

(Optional) git proxy

Set up git proxy:

git config --global http.proxy http://127.0.0.1:1087
git config --global https.proxy https://127.0.0.1:1087

Unset git proxy:

git config --global --unset http.proxy
git config --global --unset https.proxy

Now follows the steps depand on your OS.