git: fix missed date detection
move some funcs to functions/git
gremote: add -o option for add origin repo