Ls - al
Total 145636
DRWXR - xr - 4096 Jan 17 11:04 x 2 XXX XXX.
DRWXRWXRWT 18 root root 4096 Jan 17 10:44..
Rw - r - r - 1 root root 45 Jan 16 backs imitation. Tar. Gz
Rw - r - r - 1 root root 146996064 Jan 16 backs wp. Bak. Tar. Gz
Rw - r - r - 2114053 Jan 16 1 XXX XXX backs wp. SQL. Bak. Tar. Gz
Wp. Bak. Tar. Gz is a 140 m file
Now I want to put all the files in the/TMP/back folder, push to my dead simple.
1. Install LFS
The curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
Sudo apt - get the install git - LFS
Git LFS install
2. Push/TMP/back all the files in the
CD/TMP/back
Git init
Git LFS track./wp. Bak. Tar. Gz
Git add. Gitattributes
Git add *
Git commit -m "Add large file"
Git remote add origin https://github.com/xxxx/yyyy.git
Git push origin master
In the following error
Remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
Remote: error: Trace: 751 fb70b058bd398791f7a04ba313ea5
Remote: error: See http://git.io/iEPt8g for more information.
Remote: error: the File wp. Bak. Tar. Gz is 140.19 MB; This exceeds lot 's file size limit of 100.00 MB
To https://github.com/xxxx/yyyy.git
! [remote rejected] master - & gt; Master (pre - receive hook declined)
Error: failed to push some refs to 'https://github.com/xxxx/yyyy.git'
Excuse me, how to deal with?
CodePudding user response:
I did not upload, same as above,
Git reset 74 b23cf15f432f3b694704292511bc75647d7457
Git add. Gitattributes
Git add libYouTuMediaPlayerEngineYouku. A
//fatal: pathspec libYouTuMediaPlayerEngineYouku. A ' 'did not match any files
Git add/Users/apple/Desktop/lianxiangaichongvideo/DoYin/Pods/YKMediaPlayerSDK YouTuEngineMediaPlayer/libYouTuMediaPlayerEngineYouku. A
Git commit -m "Add the design file"
/*
[5736497] gitattributes Add the design file
2 files changed, 7 insertions (+)
The create mode 100644. Gitattributes
The create mode DoYin 100644/Pods/YKMediaPlayerSDK YouTuEngineMediaPlayer/libYouTuMediaPlayerEngineYouku. A
*/
Git push origin master
/*
Enumerating objects: 1991, done.
Counting objects: 100% (1991/1991), done.
Delta compression will using up to four threads
Compressing objects: 100% (1932/1932), done.
Writing objects: 100% (1990/1990), 96.17 MiB | 1.41 MiB/s, done.
Total 1990 (400) delta, reused zero (0) delta
Remote: Resolving deltas: 100% (400/400), done.
Remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
Remote: error: Trace: c73f98e2e672558e83ebcb97995a7325
Remote: error: See http://git.io/iEPt8g for more information.
Remote: error: the File DoYin/Pods/YKMediaPlayerSDK YouTuEngineMediaPlayer/libYouTuMediaPlayerEngineYouku. A, is 185.03 MB. This exceeds lot 's file size limit of 100.00 MB
To https://github.com/* *. Git
! [remote rejected] master - & gt; Master (pre - receive hook declined)
Error: failed to push some refs to '* * https://github.com/. Git'
*/