consolidated git functions