Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonekratz/1a08fabaf4db8b9645701c7c0ba46ecd to your computer and use it in GitHub Desktop.
Save jasonekratz/1a08fabaf4db8b9645701c7c0ba46ecd to your computer and use it in GitHub Desktop.
  1. git lfs install
  2. clone repo
  3. checkout branch(es) that you want to migrate
  4. remove remotes
    • git remote remove <remote name>
  5. git lfs migrate import --include="*.uasset","*.umap","*.lib" --everything
    • --include has example file types.
    • --everything will do all branches
  6. create new remote repo
  7. add remote(s) back in git remote add origin <URL> for new repo created above
  8. git push -u origin --all push all branches

Now clean up local copy

  1. git reflog expire --expire-unreachable=now --all
  2. git gc --prune=now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment