Logo Ricky
  • 首頁
  • 關於
  • 更多的
    技能 經歷 學歷 專案
  • 文章
  • 筆記
  • 活動
  • Transform
  • Chinese
    English Chinese
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • 標籤
  • A10
  • ACME
  • AD
  • AES
  • AI
  • Aliyun
  • Ansible
  • APP
  • Application Delivery Controller
  • Arceus
  • Argo CD
  • ASCII
  • Authentication
  • Authorization
  • AWS
  • BASH
  • Bayonet
  • Benchmark
  • BGP
  • BIRD
  • Board Game
  • Browser
  • Byte
  • Cache
  • CDN
  • Channel
  • Chart
  • Checklist
  • Chrome
  • Chrome OS
  • Chrony
  • CI
  • Cilium
  • Cisco
  • Cloud-Native
  • Cloudflare
  • Cluster
  • Command Line
  • Completion
  • Config
  • Container
  • CPU
  • CURL
  • Data
  • Database
  • Debug
  • Dehydrated
  • Design
  • DevSecOps
  • Diagrams
  • Dmg
  • DNS
  • DNS-01
  • Docker
  • EFF
  • ElasticSearch
  • ELK
  • Emoji
  • EMQX
  • Encode
  • Encrypt
  • ESXi
  • Extension
  • Firewall
  • Fortigate
  • Fortinet
  • FortiOS
  • Game
  • GeoIP
  • GIN
  • Git
  • GitBook
  • Github
  • Gitlab
  • GitOps
  • Gluetun
  • Go
  • Go-Mysql-Elasticsearch
  • Golang
  • Google
  • GPG
  • GraphQL
  • HA
  • HAProxy
  • Hash
  • HomeLab
  • Htop
  • HTTP
  • Infra
  • Infrastructure
  • Input Method
  • Interview
  • Introduction
  • IPhone
  • Iptables
  • Iso
  • Issue
  • ITerm2
  • Jenkins
  • Jsoniter
  • Juniper
  • JWT
  • Kibana
  • Kubernetes
  • LDAP
  • Leetcode
  • Lightweight
  • Linkerd
  • Links
  • Linux
  • Llamafile
  • LLM
  • Log
  • Lua
  • Lullaby
  • LVM
  • Machinelearning
  • MacOS
  • Markdown
  • Mattermost
  • Mermaid
  • MinIO
  • Module
  • MQTT
  • MSS
  • MTU
  • Music
  • MyDumper
  • MySQL
  • NAS
  • Netcat
  • Network
  • Nftables
  • Nginx
  • OAuth
  • OIDC
  • Ollama
  • OpenResty
  • Parquet
  • Percona
  • Pinyin
  • Pip
  • Plugin
  • Pokemon
  • PostgreSQL
  • PowerDNS
  • PowerShell
  • Pprof
  • Principle
  • Prometheus
  • Protobuf
  • Proxy
  • Push
  • Python
  • QRCode
  • R
  • RAID
  • RDP
  • Redis
  • Regex
  • Ringtone
  • Route
  • Rust
  • S3
  • ScreenShot
  • Security
  • Selenium
  • Sentry
  • Service Mesh
  • SFTP
  • SHELL
  • Slides
  • Snow
  • Software
  • SonarQube
  • SQL
  • SSH
  • SSL
  • String
  • Switch
  • Sync
  • Synology
  • System
  • Tcpdump
  • Telegram
  • Terminal
  • Terraform
  • Test
  • Testing
  • Time
  • Timeout
  • TLS
  • Tor
  • Trace
  • Traefik
  • Travel
  • Tunnel
  • Typora
  • Ubuntu
  • URL
  • UserAgent
  • V2Ray
  • Vagrant
  • Video
  • Vim
  • Virtualization
  • Visualization
  • VNC
  • VPN
  • VSCode
  • WAF
  • Web
  • WebAssembly
  • Webp
  • Windows
  • WSL
  • YAML
  • Youtube
  • Zabbix
  • Zero Trust
  • Zim
  • ZSH
  • 台語
Hero Image
Git 核心開發者如何設定 Git

Git 核心開發者如何設定 Git # clearly makes git better [column] ui = auto [branch] sort = -committerdate [tag] sort = version:refname [init] defaultBranch = main [diff] algorithm = histogram colorMoved = plain mnemonicPrefix = true renames = true [push] default = simple autoSetupRemote = true followTags = true [fetch] prune = true pruneTags = true all = true # why the hell not? [help] autocorrect = prompt [commit] verbose = true [rerere] enabled = true autoupdate = true [core] excludesfile = ~/.gitignore [rebase] autoSquash = true autoStash = true updateRefs = true # a matter of taste (uncomment if you dare) [core] # fsmonitor = true # untrackedCache = true [merge] # (just 'diff3' if git version < 2.3) # conflictstyle = zdiff3 [pull] # rebase = true

Friday, March 7, 2025 閱讀
Hero Image
我如何設定 Git 身分

我如何設定 Git 身分 includeIf [includeIf "gitdir:~/code/**"] path = ~/.config/git/personal [includeIf "gitdir:~/work/**"] path = ~/.config/git/work hasconfig:remote.*.url: [includeIf "hasconfig:remote.*.url:git@github.com:*/**"] path = ~/.config/git/config-gh [includeIf "hasconfig:remote.*.url:git@github.com:orgname/**"] path = ~/.config/git/config-gh-org [includeIf "hasconfig:remote.*.url:git@gitlab.com:*/**"] path = ~/.config/git/config-gl [includeIf "hasconfig:remote.*.url:git@git.sr.ht:*/**"] path = ~/.config/git/config-srht insteadOf [url "gh-work:orgname"] insteadOf = git@github.com:orgname

Monday, November 25, 2024 閱讀
Hero Image
Git 強制推送

https://www.jvt.me/posts/2021/10/23/undo-force-push/ https://www.jvt.me/posts/2018/09/18/safely-force-git-push/ git push --force-with-lease

Friday, July 26, 2024 閱讀
Hero Image
在 Git 中追蹤 SQLite 資料庫變更

在 Git 中追蹤 SQLite 資料庫變更 用於 diff sqlite 資料表的 Git hook 首先,在設定中加入名為 “sqlite3” 的 diff 類型。最簡單的方式是直接執行這些指令: git config diff.sqlite3.binary true git config diff.sqlite3.textconv "echo .dump | sqlite3" 或者,你也可以把這段加入你的 ~/.gitconfig 或專案的 .git/config: [diff "sqlite3"] binary = true textconv = "echo .dump | sqlite3" 接著,若尚未存在 .gitattributes,就建立它並加入這一行: *.sqlite diff=sqlite3 注意檔名 (*.sqlite) 可能會因你的設定而不同。以我的情況為例,它應該要匹配 *.gnucash。 大致上就是這樣!下次執行 git diff 或任何會對 sqlite 檔案產生 diff 的指令時,你會看到格式化良好的變更差異。

Wednesday, February 7, 2024 閱讀
Hero Image
利用 GPG 簽署 git commit

利用 GPG 簽署 git commit

Tuesday, October 5, 2021 閱讀
Hero Image
Git 小技巧:用 .mailmap 合併不同作者

Git 小技巧:用 .mailmap 合併不同作者 .mailmap 檔案 ==> Name you want to keep <email> Name you no longer want <email> John Doe John Doe John Doe John Doe John Doe john doe Max Example Max 之前 $ git shortlog -se 1 John Doe <John@Doe.org> 1 John Doe <John@doe.org> 2 John Doe <john@doe.org> 1 Max <max@test.co.uk> 3 Max Example <hi@test.com> 1 john doe <john@doe.org> 之後 $ git shortlog -se 5 John Doe <john@doe.org> 4 Max Example <hi@test.com>

Thursday, August 5, 2021 閱讀
Hero Image
Git内部原理介绍

Git 内部原理介绍

Tuesday, June 2, 2020 閱讀
Hero Image
CS 視覺化:實用的 Git 指令

CS 視覺化:實用的 Git 指令

Thursday, April 16, 2020 閱讀
導覽列
  • 關於
  • 技能
  • 經歷
  • 學歷
  • 專案
聯絡方式:
  • zeyanlin@outlook.com
  • linzeyan
  • Ricky
  • Ricky