My company switched from TFVC to TFS Git. I'm migrating a release automation tool to support the switch.
Among other things, the tool creates a new branch for the release, as well as a new label ("tag" in Git). For TFVC, these operations are performed directly on the TFS server, and do not require a local copy of the repository. Is this still possible to achieve in Git, or would I be forced to clone the repository locally for these operations?
The two libraries I've looked at so far are Microsoft.TeamFoundation.Git.Client which seems to be the official wrapper for TFS Git REST API, and LibGit2Sharp. I am not limited to those libraries, so another option is welcome as well.
We are also in the process of upgrading from TFS 2015 to TFS 2017, so if there is an answer that only targets one of these I'd like to know as well.
EDIT 1
To be clear, by "directly on remote repository" I mean without passing through a local one. The tool is fully automated and if possible I'd rather not require file-system access.
EDIT 2
As mentioned below by @rmcsharry it is now possible to create a tag directly on the remote server. That's a nice improvement, but of course the main goals is to first create a branch directly on the remote, which is definitely possible in the web UI, just not (yet?) via the API. Here's the web UI screenshot:
Without that part I cannot automate the process I mentioned without passing through the local file system, which is my goal.