New functions for git syncing

Grouping some operations that we use a bunch in various deploy activities