github提交代码失败

向github上面提交代码,提示代码里面有大文件,建议使用git-lfs.git

 

1,安装git-lfsgithub

yum install git-lfs

 

2,配置须要追踪的打文件(因为我这里提交的是jar包)blog

git lfs track "*.jar"

3,git添加属性it

git add .gitattributes

4,提交class

git commit -m 'add .gitattributes'

 

5,push 配置

git push

  

 

后续就使用git能够传送大文件 yum

相关文章
相关标签/搜索