Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So, every branch is represented by a file in .git/refs; you’ll find, for example, .git/refs/heads/master alongside any other local branches you’ve created.

There’s an analogous tree for remote branches!




Well, hell. I've done surgery on those files before. Not sure how I forgot that.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: