mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-13 09:12:08 +08:00
7484d75205
This commit adds a new script, 'sync-lfs.sh'. This script assists by syncing the git large file storage (LFS) system. It backs up the current LFS configuration, uses the comma-separated configuration for operations like fetch and pull, and then restores the original configuration before pushing to the origin's main branch.
8 lines
220 B
Bash
8 lines
220 B
Bash
#!/usr/bin/env bash
|
|
mv .lfsconfig .lfsconfig.bak
|
|
mv .lfsconfig-comma .lfsconfig
|
|
git lfs fetch --all; git lfs pull
|
|
mv .lfsconfig .lfsconfig-comma
|
|
mv .lfsconfig.bak .lfsconfig
|
|
git lfs fetch --all; git lfs push origin main
|