gitfirefoxversion-controlfirefox-profile

What folders/files of a Firefox profile should you exclude from your commit?


I'm trying to store a Firefox profile in git. I've configured it to use a proxy and I want to be able to pull the profile back up when I check the code out again.

As far as I can tell from the documentation there's a Cache folder and an Offline Cache folder that probably shouldn't be included because they are just cached folders, and not any thing of significance to retaining the proxy settings to be used when the Firefox profile is loaded.

Is there anything else in the profile folder that isn't worth including in the commit, because it has nothing to do with:

  1. Preventing the profile from being loaded.
  2. Preventing the proxy settings from being loaded on the next checkout

I've tried adding the following:

# Ignore FF Cache
ProxyProfileFF/cache2/**
ProxyProfileFF/OfflineCache/**
ProxyProfileFF/jumpListCache/**
ProxyProfileFF/startupCache/**
ProxyProfileFF/saved-telemetry-pings/**

# Ignore vim temp files
*~

Solution

  • Here is my .gitignore file:

    ( that stored in the profile folder ) i.e.

    /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