将gitignore文件转换为tfignore.从我开始的默认离子应用程序

Joe*_*nes 5 git ionic-framework

如何将以下gitignore文件转换为tfignore文件.我使用TFS进行源代码控制,并且不希望检查这些文件,因为目录非常大

这是gitignore文件:

# 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
Run Code Online (Sandbox Code Playgroud)

Von*_*onC 1

考虑tfignore 手册页

.tfignore文件规则

以下规则适用于.tfignore文件:

  • #开始注释行
  • 支持*和通配符。?
  • 文件规范是递归的,除非以\字符为前缀。
  • !否定文件规范(不忽略与模式匹配的文件)

.tfignore文件示例

######################################
# 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
Run Code Online (Sandbox Code Playgroud)

这看起来与您的没有太大不同.gitignore(除了“ ” /,即“ \”):尝试将简单的复制粘贴到您的 中.tfignore,然后查看不需要的文件是否仍然显示在待处理更改列表中:您仍然可以撤消这些更改,调整您的.tfignore文件,然后重试。