Im trying to execute some git commands on the Release configuration of Team Services.
I followed this guide to allow git on my Repo. By now i can only execute this commands on the Build configuration, so i create a command line task and execute a git command there, and it works normally.
But in my Release definition, i would like to make a ´git branch´ after change the enviroment. when i try to execute a git command on my command line task e get this message: fatal: Not a git repository (or any of the parent directories): .git this because the Release tries to execute the command problably on my drop folder.
How can i execute a git command on my repo on aRelease task.

git branchbut alsogit cloneorgit pullbeforehand. So that you get a repo first - and then create a branch on it. Otherwise, git can't operate on the remote repo without having it fetched in the first place.