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

Some of your scripts could possibly use `origin/HEAD` and reflect whatever origin thinks is the default branch. (Though obviously that assumes you always have an `origin` remote or something remote-like.) Including using the commit referenced by `origin/HEAD` to find the `origin/{branch-name}` that matches if you want a name to check locally.


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

Search: