先上結論:gitee的lfs功能收費,直接從github遷移包含lfs管理的文件會出錯,配置lfs.url即可解決問題
Q: 為什么要遷庫呢?
A: github訪問太慢了,不然我也不想費這個功夫!
gitee自帶的有從github同步倉庫的功能,一般來說該功能非常方便。
然而,我們的github庫使用了lfs,這就是踩坑的開始。
1.跟往常一樣,直接在gitee中一鍵導入github倉庫,一切正常。我還專門新建了一個文本文件測試了一下,上傳成功,以為萬事大吉了。
2.過了幾個小時,一位成員突然給我說clone庫的時候出錯了,我一臉懵逼,Error downloading object Smudge error: Error downloading這是啥錯?我沒問題啊!

3.我自己clone了一下,發現報了一樣的錯誤。在網上搜了半天發現貌似是二進制文件下載出了問題,在stackoverflow中找到了答案(在這吐槽一下,百度半小時,谷歌一分鍾)
In my case the SSH-authenticated repository was updated to use LFS from another client and on my side Git-LFS didn't know about the SSH remote-url.
What I did to fix it was the following:
Copy the URL configured in remote.origin.url (push URL for origin) to lfs.url (the URL LFS uses):
$ git config lfs.url $(git config remote.origin.url)
(If your remote is not named origin then change to your remote name.)
Then run
$ git config lfs.url
to show the URL and confirm that it does indeed contain an SSH url, and not some HTTP/HTTPS url.
Then you can
$ git pull
Done.
See also: https://github.com/git-lfs/git-lfs/issues/2661#issuecomment-335903332
簡單來說就是git找不到lfs文件的位置,我去gitee上一看,果然那些大文件都是not found,然后配置一下lfs.url即可

git config lfs.url https://github.com/xxxxx.git
4.配置完成后,我重新clone了一下,很好,沒有報錯,二進制文件也下載了。
5.然而我想上傳一個大文件時,報了一個更離譜的錯誤ERROR: Authentication error: Authentication required: Authorization error:
沒有權限?我是倉庫管理員啊!

查詢后發現,這不是git權限報錯,而是git lfs沒有權限,我這才想起來去看看gitee支不支持lfs,結果如下:

至此,破案了,lfs功能收費,我先發個郵件去問問,后續再更......
不對,該問題是由git lfs功能引起的,在github中也有不少人遇到
$ rm .git/hooks/pre-push
$ git push
可以解決沒有授權的問題
感覺目前是這樣:lfs是另外的庫由github保管,其他沒有被lfs track的文件可以上傳到gitee,配置lfs.url后大文件還是放在github
不需要gitee的付費功能/hh
