【问题标题】:Remove 1.js.map from git changes on Ionic 3 project从 Ionic 3 项目的 git 更改中删除 1.js.map
【发布时间】:2019-12-11 12:21:25
【问题描述】:

如何从git 更改中删除js.map 文件?我试过很多。但还没有运气。我的项目是Ionic 3 app。

.gitignore

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

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

.idea/
.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
.sourcemaps/

【问题讨论】:

    标签: angular git typescript ionic3


    【解决方案1】:

    尝试以下方法:

    1. 提交所有更改
    2. 使用git rm -r --cached .sourcemaps/ 取消跟踪索引
    3. 提交您的更改git push

    希望对你有帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-17
      • 2018-08-12
      • 2016-04-27
      • 1970-01-01
      • 2021-10-05
      • 2019-10-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多