# Functions
CurrentRef returns the current reference or branch name, with the Git directory specified by path
git -C path rev-parse --abbrev-ref HEAD.
GitDir checks if the directory is a Git repository, with the Git directory specified by path
git -C path rev-parse --git-dir.
RemoteURL returns the URL of the remote, with the Git directory specified by path
git -C path ls-remote --get-url.