jnjnliwenjie0022 / obs

obsidian

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

github

https://github.com/jnjnliwenjie0022/obs

window

method1

Download https://desktop.github.com/

method2

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

ref

auto sync without plugin https://www.youtube.com/watch?v=H6ipjzaN2WY

linux

https://hoyipngai.medium.com/%E6%96%B0%E5%AE%89%E8%A3%9Dlinux%E7%9A%84proxy%E8%A8%AD%E5%AE%9A-eaf928878c7a

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

without ssh

會需要一直打username and token, 所以比較不推薦

git clone https://github.com/jnjnliwenjie0022/obs.git

#github(https://github.com/jnjnliwenjie0022) -> Settings -> Developer settings -> Personal access tokens -> Tokens (classic)

with ssh

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

About

obsidian


Languages

Language:Verilog 72.7%Language:HTML 11.5%Language:C++ 4.3%Language:SystemVerilog 3.9%Language:TypeScript 3.5%Language:Makefile 3.4%Language:JavaScript 0.2%Language:CSS 0.2%Language:Perl 0.1%Language:Shell 0.1%Language:C 0.0%Language:Tcl 0.0%