Skip to content
Jesse Houwing edited this page Feb 26, 2016 · 4 revisions

When you've made changes to the local workspace, but want to revert them to their original state, you can use the undo task. Often added at the end of a build workflow that changes items in source control to revert the workspace to it's original state should anything go wrong.

Configuration

  • Files to undo - specify one or more paths, separated by ; or newline. While wildcards (?, *) are supported, they're not the same as the minimatch patterns used by other build task and do not support the recursive wildcard **.

    Example: $/MyTeamproject/Main/AssemblyInfo.cs

  • Recursion - controls whether you'll be undoing just the current folder/file (None), one level below the selected path (One Level) or all levels below the selected path (Full).

Advanced

  • Delete Adds - Also deletes file added to the workspace
Clone this wiki locally