Git undo local commit
久唔久就會大意地 Commit 錯野 發現以下這個 git command Git undo pushed commit and keep changes unstage 解決方法 git reset HEAD^
久唔久就會大意地 Commit 錯野 發現以下這個 git command Git undo pushed commit and keep changes unstage 解決方法 git reset HEAD^
Hugo Error failed to extract shortcode: template for shortcode "alert" not found 解決方法 git submodule update --init --recursive Test hugo server --watch
今日嘗試用 command line (CLI) 執行 ESLint 時出現了以下的錯誤信息 # eslint command eslint ./src Error: Cannot find module 'eslint-config-airbnb'
我們可以使用以下指令到 clear Yarn / NPM 的 cache # yarn yarn cache clean # npm npm cache clean --force # remove node_modules folder rm -rf node_modules Hope you find it useful
久不久我使用的 Git 便會出現以下問題 Unlink of file. ’ file path and name’ failed. Should I try again? (y/n)
今日 Update WordPress 既時候出現了 輸入 FTP 資料的畫面 To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not …
如果有用開source control, 做 code view 或 compare files 時 whitespace / Tab 會造成一些不必要既麻煩 很多IDE 都有一些設定或 plugin 可以在你儲存檔案時除去尾隨空格 在Visual Studio Code 有一些很好用的 settings 大家可在 Settings 上搜尋 …
今日發現自從把 wordpress 轉了用 docker host 之後便不能 upload file 原因是我把之 wordpress site 的檔案從 FTP upload 到新 server 的 uploads folder 的 ownership 是我 FTP 的 user 名 而不是 run wordpress 的 www-data
今日在Code Review 同事的 Code 時候發現了一個有趣的寫法 他想做的是 Return 一個Distinct 左既 List Of Object 好直接既想法是使用 Distinct List.Distinct(); 之後發現 Distinct 是不能 Distinct Object 的 同事的寫法是用了 List 加 GroupBy 和 …
今日嘗試使用 EF Core with MySQL 時出現了以下的錯誤信息: MySql.Data.MySqlClient.MySqlException HResult=0x80004005 Message=Specified key was too long; max key length is 3072 bytes Source=MySql.Data …