simplify git detection
add -- for seperating options from filenames