$ git init
$ git add .
$ git commit -m “First commit”
$ git remote add origin remote repository URL
$ git push origin master
但这没有运行,即使这样做,我相信它只会将所有文件直接上传到存储库中。
谨慎地,我有一个存储库,其中包含一个单独的文件夹,我需要将所有600 MB的文件推入此文件夹。请让我知道我如何最好地实现这一目标!
https://docs.github.com/en/free-pro-team@latest/github/managing-large-files/versioning-large-files
在同一项目目录写入
上开放终端
$ git lfs install
$ git lfs track "*.gif"
Tracking "*.gif"
$ git add .gitattributes
然后添加您需要提交的文件,例如。
$ git add public/assets/sample.gif
例如,您在主人公$ git push origin master
Reference:
Https://guide.ncloud-docs.com/docs/en/sourcecommit-use-lfs