git - Nextcloud 版本控制
问题描述
我有一个本地 Nextcloud 实例,我想对所有内容(源 + 数据文件夹)使用版本控制(使用 git)。
文件可以忽略哪些文件夹.gitignore
?
解决方案
you should start from this:
# the default generated dir + db file
/data
/config/config.php
/config/*.config.php
/config/mimetype*.json
/config/mount.php
/apps/inc.php
/assets
/.htaccess
/translationfiles
/translationtool.phar
# ignore all apps except core ones
/apps*/*
!/apps/accessibility
!/apps/cloud_federation_api
!/apps/comments
!/apps/dav
!/apps/files
!/apps/federation
!/apps/federatedfilesharing
!/apps/sharebymail
!/apps/encryption
!/apps/files_external
!/apps/files_sharing
!/apps/files_trashbin
!/apps/files_versions
!/apps/lookup_server_connector
!/apps/user_ldap
!/apps/oauth2
!/apps/provisioning_api
!/apps/systemtags
!/apps/testing
!/apps/admin_audit
!/apps/updatenotification
!/apps/theming
!/apps/twofactor_backupcodes
!/apps/workflowengine
/apps/files_external/3rdparty/irodsphp/PHPUnitTest
/apps/files_external/3rdparty/irodsphp/web
/apps/files_external/3rdparty/irodsphp/prods/test
/apps/files_external/3rdparty/irodsphp/prods/tutorials
/apps/files_external/3rdparty/irodsphp/prods/test*
/apps/files_external/tests/config.*.php
# apps modules
/apps/*/node_modules
# ignore themes except the example and the README
/themes/*
!/themes/example
!/themes/README
# just sane ignores
.*.sw[po]
*.bak
*.BAK
*~
*.orig
*.class
.cvsignore
Thumbs.db
*.py[co]
_darcs/*
CVS/*
.svn/*
RCS/*
*.backup*
# kdevelop
.kdev
*.kdev4
*.kate-swp
# Lokalize
*lokalize*
# eclipse
.project
.settings
# netbeans
nbproject
# phpStorm
.idea
*.iml
# vscode
.vscode
# geany
*.geany
# Cloud9IDE
.settings.xml
.c9revisions
# vim ex mode
.vimrc
# ack(-grep)
.ackrc
# Mac OS
.DS_Store
# WebFinger
.well-known
/.buildpath
# Tests
/tests/phpunit.xml
# Node Modules
/build/node_modules/
# nodejs
/build/bin
/build/lib/
/build/jsdocs/
/npm-debug.log
/PhantomJS_*
/build/package-lock.json
# puphpet
puphpet
# vagrant
.vagrant
Vagrantfile
# Tests - auto-generated files
/data-autotest
/tests/coverage*
/tests/css
/tests/karma-coverage
/tests/autoconfig*
/tests/autotest*
/tests/data/lorem-copy.txt
/tests/data/testimage-copy.png
/tests/ui-regression/out/
/tests/ui-regression/node_modules/
/tests/ui-regression/package-lock.json
/config/config-autotest-backup.php
/config/autoconfig.php
clover.xml
# Tests - dependencies
tests/acceptance/composer.lock
tests/acceptance/vendor/
推荐阅读
- django-templates - 在 Django 模板中使用引导表粘性标题扩展
- r - R函数为数据集的子集创建单个回归线
- javascript - 使用 MediaRecorder API 动态控制将实时视频上传到 S3 分段的块大小
- ios - 如何在 iOS 扩展中设置 Flutter 平台频道(播客上传扩展)
- python - Python3:如何从熊猫数据框中只选择工作日?
- html - 当引导导航栏崩溃时腾出空间被占用
- postgresql - postgres 中的 Oracle READ WRITE 模式
- django - 如何在本地主机上的 Django 项目中测试图像的元标记
- swift - SwiftUI MapKit 获取地图位置坐标
- dataframe - 基于两列动态合并数据框