How long do you keep a Git branch around after you merge it?
I have a habit of deleting the branch immediately after merging, but I've had to use the reflog to recover updates a few times over the last few years. I'm wondering if I should keep branches around a little longer before deleting.
»Leaks auf Github — Top-KI-Unternehmen haben ihre Keys nicht im Griff:
Forscher haben auf Github allerhand private Schlüssel, Tokens und weitere Anmeldedaten von einem Großteil der Forbes AI 50 entdeckt.«
Sorry aber genau da sieht mensch wie professionell die wirklich sind. Auf Git ungeprüft Keys & Co. zu lagern macht man professionell nicht. So schlau sind die KI-Angestellten wohl.
#github #ki #itsicherheit #git #schlussel #tokens #nichtimgriffhaben #anmelden
Fun with git pickaxe. Try
git log --pickaxe-regex -S 'a.*zz'
and see that it takes ages.
Most regex engines let a dot not match an end of line. But pickaxe explicitly requests it. Therefore 'a.*zz' matches from every 'a' through to the last character of a diff in search for a pair of 'z'. If it does not find it, it moves to the next 'a' and starts over. Principle of the longest match.
Try with 'e.*zz' an explain why it takes even longer.😎
#git #regex #longestMatch #gitLogPickaxe
Speaking of performance, I knew my plugin wouldn't be fast for any large repo - variously it indexed the repo into lucene then walked different branches to find containment. It's been to long for me to be specific about O-ness but it was definitely viable for small repos.
fun fact, I wrote/adapted a git plugin for jira in 2008 (and 2012). The original was a subversion plugin and I changed the meat to speak git.
https://github.com/jlongman/jira-git-plugin/
The license was MIT - or I released MIT, its been a while - so someone actually sold it for a while. I considered buying my own code when I had a specific issue but had to fix it myself in 2012.
The original subversion plugin was written by one of atlassian's co-founders.

🚀 GitNex 11.0.0 is out!
This release brings a custom URL scheme for easier access to your own instances, plus new features and bug fixes.
✨ Highlights:
• Repository topics
• Add or delete topics
• View global repo settings as an instance admin
Release Notes: https://codeberg.org/gitnex/GitNex/releases
#gitnex #git #android #app #codeberg #gitea #forgejo #foss
Monorepo vs Multi-repo vs #Git submodule vs Git Subtree: A Complete Guide for Developers
18. Okt. 2020 13:16
i build @jujibla a #CO2 sensor
how it started:
how it was going:
how it was going:
how it ended:
https://github.com/bison--/airMaster3000
#git #foss #opensource #diy #co2sensor

#git のコミットに入っているパスって相対という認識でいいんだろうか?
Công cụ GitLauncher giúp biến các dự án GitHub thành các file thực thi (executables) dễ dàng. Dành cho người dùng phổ thông và nhà phát triển để chia sẻ và test dự án nhanh chóng trên nhiều nền tảng.
#github #developer #tool #git #lập_trình #công_cụ
https://www.reddit.com/r/SideProject/comments/1ou0rua/github_repos_to_executables/
Production Ready Data Science by Khuyen Tran is on sale on Leanpub! Its suggested price is $25.00; get it for $10.50 with this coupon: https://leanpub.com/sh/qlc7lF0x #DataScience #Python #SoftwareEngineering #VersionControl #Git
@HaraldKi How I get the list of commits to more more than about 10 lines high?
For the CLI, `tig reflog` is a fast reflog reviewer that will show as many lines of reflog history as fit on your screen.