如何将以下 gitignore 文件转换为 tfignore 文件。我使用 TFS 进行源代码控制,并且不想将这些文件 checkin ,因为目录非常大
这是 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
最佳答案
.tfignore
file rulesThe 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
这看起来与您的 .gitignore
没有太大区别(除了 '/
' 是 '\
'):试试将一个简单的复制粘贴到您的 .tfignore
中,然后查看不需要的文件是否仍显示在待定更改列表中:you can still undo those changes ,调整您的 .tfignore
文件,然后重试。
关于git - 将 gitignore 文件转换为 tfignore。从我开始的默认 ionic 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50069678/