Version, select, or unpublish a published wiki

VSTS

Note

The publish code as wiki feature is currently available on VSTS only. For TFS 2018 and later versions, you can only provision a wiki for your team project.

When you publish a Git repository to a wiki, you can publish new branch versions of the repo, select a version to view, or unpublish the repo.

Publish a new wiki version

When your published wiki corresponds to a product version, you can publish new versions as you release new versions of your product. To create a new version, create a new branch of your repo and then make updates to that new branch.

  1. To create a new branch from the web portal, open the Code>Branches page, open the actions icon for the branch you have previously published, and choose New branch.

    Create a new branch

  2. To Publish the new branch to a wiki, open the Wiki page for the currently published branch, open the actions icon, and choose Publish new version.

    Publish new version menu option

  3. Fill out the form, choosing the branch that you previously created.

    Publish new version dialog box

  4. Click Update.

Select a wiki version

To select a wiki version, choose the version from the branch options from your Wiki hub.

Select wiki version

Unpublish a published wiki

If you no longer want a repository to be published as a wiki, you can choose to unpublish it from the Wiki hub. Unpublishing a wiki unpublishes all versions of the repository that you have published previously.

  1. Simply select the wiki you want to unpublish, pen the context menu, and choose Unpublish wiki.

    Unpublish a wiki confirm dialog

  2. Confirm that you want to unpublish the wiki by choosing Unpublish.

    Select wiki version