In this case, the second version overrides the first. Note: a ref may appear in both the packed-refs file and a file in a. Your own Git will have a refs/remotes/origin/master paired with an SHA-1 hash in your. git/packed-refs, which is a plain-text file. Currently, packed references are found in. The answer is that not all references are necessarily in files. git/refs/remotes/origin directory, so you are wondering how this can work. It means 'although this is a valid name, the SHA-1 to which this reference resolves is found by reading another reference.' But, as you note, there's no file named master in the. git/refs/remotes/origin/HEAD are ref: refs/remotes/origin/master.Ī reference that consists of the literal string ref: followed by another reference name is a 'symbolic' reference, in git terms. git/refs/remotes/origin and it contains two files, HEAD and sp2013dev. Just for emphasis: you're poking around in the insides of git you've found a directory named.