Migrate a GitHub LFS (Git Large File Storage) repository to AWS CodeCommit

git clone --mirror https://github.com/tanshuai/designs.git designs
$ git lfs ls-files

cadfa0bc9e * Brochure-Trifold-Draft.ai
af9b8b8a1c * Brochure-Trifold-English.ai
27bb5f4e61 * Brochure-Trifold.ai

$ git lfs migrate export --include="*.ai" --everything

migrate: Sorting commits: ..., done.                                                                                                       
migrate: Rewriting commits: 100% (20/20), done.                                                                                            
master	98a3c48d85... -> 82f8873b41...
migrate: Updating refs: ..., done.                                                                                                         
migrate: checkout: ..., done.                                                                                                              
prune: 3 local object(s), 0 retained, done.
cadfa0bc9e... (133 MB)                                                                 
27bb5f4e61... (131 MB)                                                                                                                                
af9b8b8a1c... (130 MB), done.
prune: Deleting objects: 100% (3/3), done.                                                                                                 

% git lfs ls-files                                    

% git rm .gitattributes -f

$ git lfs uninstall

% git push https://git-codecommit.us-east-2.amazonaws.com/v1/repos/designs --all

Tan Shuai
Tan Shuai
Engineer of Decentralized Technologies

My research & development interests include artificial intelligence, blockchain and peer-to-peer streaming.