Skip to content

Instantly share code, notes, and snippets.

@jrgcubano
Forked from Novakov/merge.ps1
Last active February 17, 2016 15:43
Show Gist options
  • Save jrgcubano/d1d25a7bf71abfa56f67 to your computer and use it in GitHub Desktop.
Save jrgcubano/d1d25a7bf71abfa56f67 to your computer and use it in GitHub Desktop.
TFS Powershell scripts
param([string]$repo, [string]$source,[string]$dest,[string]$comment)
$base = "$/MAPS /Dev/$repo"
set-alias tf 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\TF.exe'
tf get /recursive "$base/$source"
tf merge /recursive "$base/$source" "$base/$dest"
tf checkin /comment:"$comment"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment