Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lī-iōng Git LFS lâi pau-kuat Realm database #7

Open
bcylin opened this issue Oct 10, 2020 · 0 comments
Open

Lī-iōng Git LFS lâi pau-kuat Realm database #7

bcylin opened this issue Oct 10, 2020 · 0 comments

Comments

@bcylin
Copy link

bcylin commented Oct 10, 2020

Database dict.realm in-uī tshiau-kuè 100MB, sóo-í bô pau-kuat tī-leh repository lāi-té. Tse ē-sái iōng git-lfs lâi kái-siān.

M̄-koh tse bô-huat-tōo tuì GitHub public fork kái. Ài tshiánn repository ē tsú-lâng lâi siat‑tīng 🙏

brew install git-lfs
git lfs install

# Remove dict.realm from .gitignore, then
git lfs track '**/*.realm'

Iōng-hó-liáu-āu git diff khuànn-khí-lâi ē tshin-tshiūnn:

diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..401d48f
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+**/*.realm filter=lfs diff=lfs merge=lfs -text
diff --git a/.gitignore b/.gitignore
index 272d014..a0c7724 100644
--- a/.gitignore
+++ b/.gitignore
@@ -106,8 +106,5 @@ Network Trash Folder
 Temporary Items
 .apdisk

-# too large file
-dict.realm
-
 # google id
 GoogleService-Info.plist
diff --git a/ChhoeTaigi_iOS/ChhoeTaigi/SupportFiles/dict.realm b/ChhoeTaigi_iOS/ChhoeTaigi/SupportFiles/dict.realm
new file mode 100644
index 0000000..79645e4
--- /dev/null
+++ b/ChhoeTaigi_iOS/ChhoeTaigi/SupportFiles/dict.realm
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:18a9acc12f2df01e018aae4fecd4ac0fbbe2b02d5d05e15a55f504dce8222f9e
+size 184549376

Lo̍h-bué git push ê sî, dict.realm ē līng‑guā thuân-uī Git LFS:

$ git push
Uploading LFS objects: 100% (1/1), 184 MB | 0 B/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant