5

How can I convert the following gitignore file to a tfignore file. I use TFS for source control and don't want to check these files in as the directory is very large

Here is the gitignore file:

# Specifies intentionally untracked files to ignore when using Git
# http://git-scm.com/docs/gitignore

*~
*.sw[mnpcod]
*.log
*.tmp
*.tmp.*
log.txt
*.sublime-project
*.sublime-workspace
.vscode/
npm-debug.log*

.idea/
.sourcemaps/
.sass-cache/
.tmp/
.versions/
coverage/
dist/
node_modules/
tmp/
temp/
hooks/
platforms/
plugins/
plugins/android.json
plugins/ios.json
www/
$RECYCLE.BIN/

.DS_Store
Thumbs.db
UserInterfaceState.xcuserstate
Joe Starnes
  • 471
  • 1
  • 6
  • 20

1 Answers1

1

Consider the tfignore man page

.tfignore file rules

The following rules apply to a .tfignore file:

  • # begins a comment line
  • The * and ? wildcards are supported.
  • A filespec is recursive unless prefixed by the \ character.
  • ! negates a filespec (files that match the pattern are not ignored)

.tfignore file example

######################################
# Ignore .cpp files in the ProjA sub-folder and all its subfolders
ProjA\*.cpp
#
# Ignore .txt files in this folder
\*.txt
#
# Ignore .xml files in this folder and all its sub-folders
*.xml
#
# Ignore all files in the Temp sub-folder
\Temp
#
# Do not ignore .dll files in this folder nor in any of its sub-folders
!*.dll

That does not look that much different from your .gitignore (except for the '/' which is '\'): try a simple copy-paste into your .tfignore, and see if the unwanted files still show up in the Pending change list or not: you can still undo those changes, tweak your .tfignore file, and try again.

magol
  • 6,135
  • 17
  • 65
  • 120
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250