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

相關文章
相關標籤/搜索