feature(update) add git check

Add check of `.git` directory before running `git pull`.