我正在尝试将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/