git - 您应从提交中排除Firefox配置文件的哪些文件夹/文件?

标签 git firefox version-control firefox-profile

我正在尝试将Firefox配置文件存储在git中。我已将其配置为使用代理,并且希望能够在再次 checkout 代码时将配置文件备份。

the documentation所知,可能不应该包含Cache文件夹和Offline Cache文件夹,因为它们只是缓存的文件夹,对于保留加载Firefox配置文件时要使用的代理设置没有任何意义。 。

个人文件文件夹中是否还有其他不值得包含在提交中的内容,因为它与以下内容无关:

  • 禁止加载配置文件。
  • 防止在下一个结帐时加载代理设置

  • 我尝试添加以下内容:
    # Ignore FF Cache
    ProxyProfileFF/cache2/**
    ProxyProfileFF/OfflineCache/**
    ProxyProfileFF/jumpListCache/**
    ProxyProfileFF/startupCache/**
    ProxyProfileFF/saved-telemetry-pings/**
    
    # Ignore vim temp files
    *~
    

    最佳答案

    这是我的 .gitignore 文件:

    (存储在配置文件文件夹中)
    IE。

    /Users/me/Library/Application Support/Firefox/Profiles/9j5n99pf.default
    

    here is a link to the gist as well
    cookies.sqlite
    cookies.sqlite-wal
    favicons.sqlite-wal
    logins.json
    places.sqlite-wal
    prefs.js
    storage/
    datareporting/
    webappsstore.sqlite
    webappsstore.sqlite-wal
    weave/
    addonStartup.json.lz4
    favicons.sqlite
    permissions.sqlite
    places.sqlite
    protections.sqlite
    search.json.mozlz4
    serviceworker.txt
    sessionCheckpoints.json
    SiteSecurityServiceState.txt
    storage-sync.sqlite
    storage.sqlite
    bookmarkbackups
    saved-telemetry-pings
    sessionstore.jsonlz4
    addons.json
    AlternateServices.txt
    content-prefs.sqlite
    extensions.json
    formhistory.sqlite
    xulstore.json
    

    关于git - 您应从提交中排除Firefox配置文件的哪些文件夹/文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38481634/

    相关文章:

    git - 排除暂存为已删除的文件 `git ls-files`

    ruby-on-rails - 是否可以从 Thor 脚本中调用 Git 或其他命令行工具?

    git - Jenkins - (私有(private)子网)带有 Github 的 WebHook 不会触发自动构建

    javascript - Chrome 中的 view-response.js 有什么作用?

    javascript - 无法在 Firefox 上建立 Websocket 安全连接

    git - Eclipse 离线同步工作区

    具有多个分支的 Git pull - 与错误的分支 merge

    version-control - TFS:比较变更集

    version-control - Intellij IDEA 红色/棕色突出显示的文件名

    javascript - 在 Firefox 中调整大小不起作用