Reputation: 21
In my TFS project repository URL I need to create a new folder without using Visual Studio.
Upvotes: 0
Views: 5114
Reputation: 51093
According to your description, you are working on TFS2017 update2 version with Git repo.
This is by designed. You could not add folders in remote repo through web portal directly.
It's only support for Azure DevOps Service (previous VSTS) and Team Foundation Server 2018, or higher. As shayki already pointed out, in previous TFS version, you have to use Folder Management.
Make sure you are following these instructions https://www.visualstudio.com/en-us/docs/marketplace/get-tfs-extensions for TFS on-prem.
If you just want to add folders without Visual Studio, suggest you directly create folders in local repository and then use gitbash command to push your local repo to remote repo.
Another choice is upgrading your TFS version to 2018 and above.
Upvotes: 1
Reputation: 41555
From the screenshot, it looks like you use TFS 2017 so you need to install the Folder Management extension to add this feature.
After you install it you can create a folder in this way:
Upvotes: 1
Reputation: 828
As Git doesn't support versioning on empty folders you're not able to create an empty folder. you could however create a file "newfolder/.gitkeep" in order for the folder to be created
Upvotes: 0