-
Notifications
You must be signed in to change notification settings - Fork 95
🪜 Workflow
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.
- Windows: How to enable OpenSSH Agent to access your github repositories on Windows PowerShell
- Linux: Start ssh-agent on login
- macOS: Proper use of SSH client in Mac OS X
Then you need to add a config telling ssh to use the credential you just created!
Here's how it work:
- Add a file named
config
(without any extension) under~/.ssh
- 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
- Test if it worked using command
ssh -T github.com
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?
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
Click the green Code
button of this repo and Download ZIP
, then unzip it for later use.
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