Github Gitee 大文件大型Repo如何上传

cloud sync
git manage
repo manage
sync
system manage
This guide provides a detailed explanation on how to upload large repositories to GitHub or Gitee, while excluding specific file types like Xonsh and YAML. The guide also covers the process of deploying SSH keys for enhanced security, automating sync processes using Visual Studio Code, and utilizing file locks for various tasks to ensure data integrity.
Published

July 16, 2022


using github/gitee apis with watchdog.

exclude xonsh yaml(.yml) files

if you decide to upload the thing to github privately, and to sync among devices, then you need to deploy and share your ssh key.

run git related command after opened the vscode repeatedly, just like notable.

before git submodule .git folder deletion you may record the remote origin url to somewhere in the base folder.

you could patch the vscode launcher somehow, read the working directory to determine to repeatedly sync or not.

git init is a manual process.

also you might need five filelocks: one for main loop process running, one for git sync, one for local sync, two for remote sync.

use $@ or $* will do to pass arguments to the vscode binary.

首先不能follow symlink

其次忽略二进制文件 忽略特定后缀以外的文件

第一次建立的时候 递归扫描所有文件 去除大文件 append到.gitignore根目录下面

下一次 git add .之前 利用git的功能寻找有变化的文件目录 把大文件目录append到.gitignore里面