Added core function to pull a git repo