git - 将 gitignore 文件转换为 tfignore。从我开始的默认 ionic 应用程序

标签 git ionic-framework

如何将以下 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 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

这看起来与您的 .gitignore 没有太大区别(除了 '/' 是 '\'):试试将一个简单的复制粘贴到您的 .tfignore 中,然后查看不需要的文件是否仍显示在待定更改列表中:you can still undo those changes ,调整您的 .tfignore 文件,然后重试。

关于git - 将 gitignore 文件转换为 tfignore。从我开始的默认 ionic 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50069678/

相关文章:

gitignore 我的 Windows 用户名

c++ - 使用 git 管理库依赖项

ionic-framework - Ionic 是更快的 ng-click 或 on-tap

php - 如何使用 PHP 来使用 AngularJs $stateChangeSuccess 将数据填充到 MySQL?

javascript - IonicFramework + AngularJS + 无法使用单击 HREF 根据列表中的选择呈现页面

angularjs - 从 firebase 中删除项目

git - 防止从分支推送到特定的远程

git - 如何解决端口 22 连接超时

javascript - 无法在 heroku 上推送 node.js 应用程序

android - Ionic emulate ios 仅适用于 --livereload