Skip to content

Instantly share code, notes, and snippets.

@mill5james
Created December 22, 2018 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mill5james/fb4a2154ad3628c39f3ea272107aa507 to your computer and use it in GitHub Desktop.
Save mill5james/fb4a2154ad3628c39f3ea272107aa507 to your computer and use it in GitHub Desktop.
function Tfs-GetAll { tf vc get /force /noprompt /recursive }
function Tfs-CleanAll {
param (
[switch]$NoPrompt = $false
)
$optional = ''
if ($NoPrompt) { $optional += '/noprompt '}
Move-Item -Path ./.vscode ./.vscode-hold
tf vc reconcile /clean /recursive /exclude:.store,.vs,.vscode-hold,*.vspscc $optional
Move-Item -Path ./.vscode-hold ./.vscode
}
function Tfs-Promote { tf vc reconcile /promote /preview /recursive }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment