https://github.com/jnjnliwenjie0022/obs
Download https://desktop.github.com/
ref: https://www.youtube.com/watch?v=5YZz38U20ws
https://git-scm.com/download/win
winget install --id Git.Git -e --source winget
in community plugin
Git
check .git in your root then in obsidian
Git: commit all changes
Git: push
issue: fatal: unable to access 'https://github.com/jnjnliwenjie0022/obs.git': Failed to connect to github.com port 443 after 21092 ms: Couldn't connect to server Pushing to https://github.com/jnjnliwenjie0022/obs.git
git config --list --show-origin
check out checkb which .gitconifg is your target
[user]
name = wen-jie li
email = jnjn0022@gmail.com
[push]
default = simple
followTags = true
[pull]
rebase = true
[http]
proxy = http://cache1:3128
postBuffer = 524288000
[https]
proxy = http://cache1:3128
[diff]
tool = vim
[alias]
co = checkout
ci = commit
st = status
br = branch
ls = ls-files
pick = cherry-pick
sync = fetch --all -p
lsd = diff --name-only
tree = log --graph --simplify-by-decoration --pretty=format:'%d' --all
tlog = log --graph --all --format='%C(red)%h %C(white)%s %Cgreen(%cr)%C(cyan) <%an>%Creset%C(yellow)%d%Creset' --all
slog = log --graph --format='%C(red)%h %C(auto,blue)%ad %C(auto,green)%aN %C(auto,reset)%s %C(auto,red) %gD' --date=short --all
blog = log --graph --format='%C(red)%h%Creset %C(white)%s%Creset %Cgreen(%cr)%Creset %C(cyan)<%an>%Creset %C(yellow)%d%Creset' --first-parent
olog = log --graph --oneline
unstash = stash pop
ff = merge --ff-only
plrb = pull --rebase
amend = commit --amend
squash = commit --squash HEAD
rev = rev-parse
ver = rev-parse
continue = rebase --continue
[advice]
ignoredHook = false
[credential]
helper = cache --timeout 99986400
auto sync without plugin https://www.youtube.com/watch?v=H6ipjzaN2WY
cd ~
vim .gitconfig
[user]
name = wen-jie li
email = jnjn0022@gmail.com
[push]
default = simple
followTags = true
[pull]
rebase = true
[http]
proxy = http://cache1:3128
postBuffer = 524288000
[https]
proxy = http://cache1:3128
[diff]
tool = vim
[alias]
co = checkout
ci = commit
st = status
br = branch
ls = ls-files
pick = cherry-pick
sync = fetch --all -p
lsd = diff --name-only
tree = log --graph --simplify-by-decoration --pretty=format:'%d' --all
tlog = log --graph --all --format='%C(red)%h %C(white)%s %Cgreen(%cr)%C(cyan) <%an>%Creset%C(yellow)%d%Creset' --all
slog = log --graph --format='%C(red)%h %C(auto,blue)%ad %C(auto,green)%aN %C(auto,reset)%s %C(auto,red) %gD' --date=short --all
blog = log --graph --format='%C(red)%h%Creset %C(white)%s%Creset %Cgreen(%cr)%Creset %C(cyan)<%an>%Creset %C(yellow)%d%Creset' --first-parent
olog = log --graph --oneline
unstash = stash pop
ff = merge --ff-only
plrb = pull --rebase
amend = commit --amend
squash = commit --squash HEAD
rev = rev-parse
ver = rev-parse
continue = rebase --continue
[advice]
ignoredHook = false
[credential]
helper = cache --timeout 99986400
會需要一直打username and token, 所以比較不推薦
git clone https://github.com/jnjnliwenjie0022/obs.git
#github(https://github.com/jnjnliwenjie0022) -> Settings -> Developer settings -> Personal access tokens -> Tokens (classic)
ssh-keygen -t rsa -b 4096 -C "https://github.com/jnjnliwenjie0022"
Enter
Enter
Enter
eval "$(ssh-agent -s)"
ssh-add -k ~/.ssh/id_rsa
#copy ssh key to github(https://github.com/jnjnliwenjie0022) from ~/.ssh/id_rsa.pub
git clone git@github.com:jnjnliwenjie0022/obs.git