Get git tags or branches from remote repository