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

Understanding refs is key to understanding Git. It’s not really difficult and a lot of mystifying cargo cult stuff suddenly becomes intuitive once you realizing you’re pretty much just manipulating pointers into a directed acyclic graph where each node has between 0 and 2 parents.


0 and >0 parents technically, but in practice usually between 0 and 2. Merge commits (commits with >1 parent) can have more than 2 parents.




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

Search: