Git: default to branches, falling back to filepaths

Tested-by: Mark Somerville <ms@pccl.info> [Arch, MRI 2.0.0]
Signed-off-by: Mark Somerville <mark@jellyjelly.net>