Git

How to Remove Passphrase on SSH Key

如何在 Raspberry Pi / linux 上移除 SSH key 上的(passphrase)。有兩種方式: 選項一:完全移除密碼片語(安全性較低,但更方便) SSH 登入你的 Pi 後執行: ssh-keygen -p -f ~/.ssh/id_ed25519 (如果你的金鑰檔名不同,請替換 id_ed25519 — 可以用 ls ~/.ssh 查 …

Git credential-manager-core is not a git command

最近set up 左新電腦 Copy 了原本用開既電腦既 .gitconfig (檔案路徑: C:\Users%username%.gitconfig) 當我run git pull 既時候出現了以下錯誤信息 git 'credential-manager-core' is not a git command. See 'git ==help' git …

Git Ignore new change after initial commit

個NodeJs Express project 為左要方便自己試野既關係… 開左個新 route 放左係 routes/poc.js 記住做完 initial commit 之後就可以 用 .gitignore 去 ignore 呢個 file… 誰不知… commit 完之後 再用 gitignore 係唔 work 的 解決方法: 用左以下 git …

How to install wifite on Raspbian - 如何在 Raspbian / ubuntu 上安裝 wifite

最近想用新買的 RaspberryPi4 來學習 Ethical Hacking 用來檢查一下屋企上的東西會不會得容易被 hack 到 如果在學習過程中 發現有 保安問題 可以早點解決 第一個嘗試既 hacking tool 就昰 Wifite 是用來 crack wifi 的 如果是用 Kali linux 的話應該已經安裝好 我用的是 Raspbian …

git rewrite commit author

最近發現自己有些 Git Repository 的 Git Author name 用錯了 account git commit history with author name 忘記了在 clone repo 既時候要用

How to untrack committed file - 如果在git 上 untrack committed file

今日需要在 git 上去 gitignore 一個之前已經 commit 了既 file 解決放法 我們可以使用以下 git command 去 untrack 之前 commit 左既 file git rm --cached [filename] e.g. git rm --cached appsetting.Development.json 之後在 …

How to untrack committed file - 如果在git 上 untrack committed file

今日需要在 git 上去 gitignore 一個之前已經 commit 了既 file 解決放法 我們可以使用以下 git command 去 untrack 之前 commit 左既 file git rm --cached [filename] e.g. git rm --cached appsetting.Development.json 之後在 …

.gitignore include a file from excluded folder

最近朋友介紹使用Codecov 來顯示 project 上的 Unit Test 既 Code Coverage 由於他需要把資料夾coverage 上的 一個檔案 clover.xml 放進 repository 上.. 但是 default 的 .gitignore 已經把 coverage 整個資料夾 exclude 了.. 那麼我們如何把在 …

Git change capitalization of filename - Git 更改檔案名大小字

今日遇到一個git 的問題 就是需要更之前 commit 了既一個 filename 的大細階.. e.g. 2020-03-01-Google-sheet-with-google-translate.md 到 2020-03-01-google-sheet-with-google-translate.md 即使在 VS code 上更新了檔案的大小字…. …

git Create branch via Command

很多時候都是使用BitBucket / Github 去create 新branch 但是久不久BitBucket 的 選擇 Branch的選項..總是選擇不到 UAT 的 最後選擇最原始既方法… 就是使用 command line 了 解決方法: # 首先 checkout 了你想Create branch from 的 branch && git …