赞
踩
git clone SSH的url
git rm -r --cached .
git lfs track '*.dll' 例如这样追踪后缀dll的文件交由lfs处理,直接输文件名加后缀也行,要选出所有大文件,所有大文件!!!
git add .gitattributes 需要先提交提交追踪文件
git commit -m "track *.dll files using Git LFS" 这里是备注
git lfs ls-files 验证是否追踪大文件,无输出显示则不成功
git add .
git commit -m "备注"
git push
ssh: Could not resolve hostname gitee.com: Name or service not known
fatal: Could not read from remote repository.
就需要设置ssh公钥,并在远程仓库配置公钥
ssh-keygen -t rsa -C "action_test@Shen.com" 这里可以随便命名,假邮箱标识
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
ssh -T git@gitee.com 如果显示successfully就完成了
Remote “origin” does not support the LFS locking API. Consider disabling it with
就需要配置一下
git config lfs.url(这里的url报错中会有提示) false
batch request: Access/Permission ... denied
就需要操作一下
# 删除 .git/hooks/pre-push 文件即可
git pull
git fetch --all
git reset --hard origin/master
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。