.gitignore include a file from excluded folder
最近朋友介紹使用Codecov 來顯示 project 上的 Unit Test 既 Code Coverage 由於他需要把資料夾coverage 上的 一個檔案 clover.xml 放進 repository 上.. 但是 default 的 .gitignore 已經把 coverage 整個資料夾 exclude 了.. 那麼我們如何把在 …
最近朋友介紹使用Codecov 來顯示 project 上的 Unit Test 既 Code Coverage 由於他需要把資料夾coverage 上的 一個檔案 clover.xml 放進 repository 上.. 但是 default 的 .gitignore 已經把 coverage 整個資料夾 exclude 了.. 那麼我們如何把在 …
今日遇到一個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 上更新了檔案的大小字…. …
很多時候都是使用BitBucket / Github 去create 新branch 但是久不久BitBucket 的 選擇 Branch的選項..總是選擇不到 UAT 的 最後選擇最原始既方法… 就是使用 command line 了 解決方法: # 首先 checkout 了你想Create branch from 的 branch && git …
最近同同事一齊用同一個 branch 寫 code 誰不知..呢隻同事..十分喜歡 rebase 或在 push 左既 branch 用 git commit --amend --no-edit 想佢變成一個 commit 之後問題便出現了… 當我嘗試 pull 他的 changes 到我的 local 時 即使我沒有加新的 commit 也出現了以下情況 …
久唔久就會大意地 Commit 錯野 發現以下這個 git command Git undo pushed commit and keep changes unstage 解決方法 git reset HEAD^
久不久我使用的 Git 便會出現以下問題 Unlink of file. ’ file path and name’ failed. Should I try again? (y/n)
今日公司個 Production project 有一個 Bug 但係在 Staging 和 UAT environment 都 replicate 唔到呢個問題.. 之後便用Git Blame 去檢查一下有什麼 code change 再看看是那一個 commit 做了 code change 找到 commit 之後 便要嘗試去看看這個commit …
今日嘗試在 git 上加入之前 用 .gitignore Ignore 左既 個 project folder 入面的 .vscode資料夾 剛剛更新了 project 入面的 workspace setting 而在VS Code 的 workspace setting 是儲存在 .vscode/settings.json 上 要把這個檔案加回 …
解決方去 我們可以在 local 的 Git Repos 上設定這個 Repos 的Git Credential 我們只需要在 Git Bash上輸入以下指令便可以了 git config user.name "YOUR_USERNAME" git config user.email "YOUR_EMAIL" 如果大家不想每次都要輸入password 的話可 …
今日剛在Bitbucket 建立左一個新既 repos 當我嘗試 push local 的一個 git repos上去既時候出現了以下的錯誤信息 (當我嘗試 Pull 這個 repos 去 local 的 repos 時) “fatal: refusing to merge unrelated histories”