github提交代码失败

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

 

1,安装git-lfs

yum install git-lfs

 

2,配置需要追踪的打文件(由于我这里提交的是jar包)

git lfs track "*.jar"

3,git添加属性

git add .gitattributes

4,提交

git commit -m 'add .gitattributes'

 

5,push 

git push

  

 

后续就使用git可以传送大文件 

posted @ 2019-01-03 17:35  某电商首席日志工程师  阅读(394)  评论(0编辑  收藏  举报