From e92f36474a90399b04b3831a4509bd1685f9e214 Mon Sep 17 00:00:00 2001 From: MaddoScientisto Date: Sun, 22 Feb 2026 23:12:11 +0100 Subject: [PATCH] Added git lfs --- .gitattributes | 18 +++++++++++++++++- README.md | 23 +++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 8e459b5..f887d97 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,22 @@ +# Git LFS tracking for large media and binaries + +# Binaries in bin/ +bin/* filter=lfs diff=lfs merge=lfs -text +bin/TwitchDownloaderCLI* filter=lfs diff=lfs merge=lfs -text +bin/ffmpeg filter=lfs diff=lfs merge=lfs -text +# Video files under archive (raw/ and common video extensions) +archive/**/video/** filter=lfs diff=lfs merge=lfs -text +archive/**/video/raw/** filter=lfs diff=lfs merge=lfs -text +*.mp4 filter=lfs diff=lfs merge=lfs -text +*.mkv filter=lfs diff=lfs merge=lfs -text +*.mov filter=lfs diff=lfs merge=lfs -text +# Large archives and executables +*.zip filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.exe filter=lfs diff=lfs merge=lfs -text +*.dll filter=lfs diff=lfs merge=lfs -text # Auto detect text files and perform LF normalization * text=auto -bin/ffmpeg filter=lfs diff=lfs merge=lfs -text bin/ffmpeg.exe filter=lfs diff=lfs merge=lfs -text bin/TwitchDownloaderCLI filter=lfs diff=lfs merge=lfs -text bin/TwitchDownloaderCLI.exe filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md index 40d7471..e2e2c1f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,29 @@ # Twitch Archive Inspired by https://github.com/EnterGin/Auto-Stream-Recording-Twitch +## Git LFS + +This repository stores large media files (recorded video and some binaries). Use Git LFS to manage large objects. + +Quick setup (Windows): + +1. Install Git LFS: `git lfs install` +2. Ensure `.gitattributes` is committed (this repo includes one). +3. If you already have large files tracked by normal Git, migrate them: + +```powershell +git lfs install +git lfs track "*.mp4" "*.mkv" "bin/*" +git add .gitattributes +git add -A +git commit -m "Migrate large files to LFS" +git push origin main +``` + +Notes: +- Git LFS needs server-side support. If using GitHub, enable Git LFS on the remote and ensure you have sufficient bandwidth/storage quota. +- You can customize tracked patterns in `.gitattributes`. + Python script to check, download live stream, VOD, chat and upload them to any cloud storage supported by rclone. ## ⚡ FFmpeg 8.0 Enhanced