github 提交和更新代码
…or create a new repository on the command line
echo "# flutterPluginsWorks" >> README.md
git init
git add .
git commit -m "first commit"
git remote add origin git@github.com:rbqren000/flutterPluginsWorks.git
git push -u origin master
…or push an existing repository from the command line
git remote add origin git@github.com:rbqren000/flutterPluginsWorks.git
git push -u origin master
提交大文件
GitHub上传大于100M的文件的方法
上传大文件方法:https://blog.csdn.net/wifi74262580/article/details/85060187
大文件路径 /Users/rbq/oc_works/BelonPrinter_black_2021_12_31/BelonPrinter/Pods/OpenCV/opencv2.framework/Versions/A/opencv2
以以下为例子进行说明
1、git init
2、git lfs install
3、git lfs track "*.zip" 或者 git lfs track "opencv2"
4、git add .gitattributes
5、git add “Pods/OpenCV/opencv2.framework/Versions/A/opencv2” (以opencv2为例)
6、git commit -m "大文件opencv2"
7、git branch -M main
8、git remote add origin git@github.com:rbqren000/BelonPrinter_black_2021_12_31.git
9、git push -u origin main
…or push an existing repository from the command line
git remote add origin git@github.com:rbqren000/BelonPrinter_black_2021_12_31.git
git branch -M main
git push -u origin main