At the end you use Git bisect
https://kevin3010.github.io/git/2025/11/02/At-the-end-you-use-git-bisect.html
#HackerNews #Git #bisect #Git #version #control #Software #development #Debugging #Programming #tips
At the end you use Git bisect
Link: https://kevin3010.github.io/git/2025/11/02/At-the-end-you-use-git-bisect.html
Discussion: https://news.ycombinator.com/item?id=45791882
🌗 善用 Git Bisect 找出引入 Bug 的提交
➤ 如同 LeetCode 的「First Bad Version」,Git Bisect 讓你輕鬆找出程式碼的錯誤源頭
✤ https://kevin3010.github.io/git/2025/11/02/At-the-end-you-use-git-bisect.html
開發者在單一倉庫(monorepo)中,面對大規模提交卻出現難以追蹤的測試失敗。透過應用二元搜尋(binary search)的概念,Git Bisect 工具能夠高效地協助開發者定位到引入問題的確切提交紀錄,從而快速解決 Bug。
+ 這個工具太實用了!過去遇到類似情況,花了好幾個小時手動查找,原來用 Git Bisect 幾分鐘就搞定了。
+ 我一直覺得演算法離實際開發很遙遠,這篇文章讓我看到二元搜尋在日常開發中的應用,真是茅塞頓開。
#Git #軟體開發 #除錯 #演算法
📜 Latest Top Story on #HackerNews: At the end you use Git bisect
🔍 Original Story: https://kevin3010.github.io/git/2025/11/02/At-the-end-you-use-git-bisect.html
👤 Author: _spaceatom
⭐ Score: 26
💬 Number of Comments: 6
🕒 Posted At: 2025-11-02 17:24:39 UTC
🔗 URL: https://news.ycombinator.com/item?id=45791882
#bot #git #news #hackernews #hackernewsbot
I use git in a shell because that's just what I prefer, and I have a lot of aliases set up to shorten commands, e.g. just "g" will be git commit, "gp" is git push etc.
I just realized that this also gives me some safety. I use PageUp to complete the currently typed thing to the last command I executed that starts the same. This will never wrongly complete my aliases to something like "git reset" because I do not have aliases for that and none of my aliases start with "gi".
#git #shellScripting
Coded for 2 hours and accidentally ran `git reset HEAD --hard` and all my progress is lost.
Actually, it's not! Git has a cool command called:
`git fsck --full --no-reflogs` where you can find "dangling" blobs (files git remembers but has not yet committed)
{piggyback} makes it easier to attach large files (e.g. input data) to code in github repos: https://github.com/ropensci/piggyback #rstats #git
Git Rev News Edition 128 (October 31st, 2025)
https://programming.dev/post/40074785
You already have a #git server
https://maurycyz.com/misc/easy_git/
Le site officiel Gitea : https://about.gitea.com/products/gitea/
Le projet sur GitHub : https://github.com/go-gitea/gitea
#Gitea #DockerCompose #AutoHébergement #Git #DevOps #OpenSource #BlablaGit
