Skip to content

Instantly share code, notes, and snippets.

@PROGrand
Last active April 29, 2021 13:01
Show Gist options
  • Save PROGrand/28fa35a7ab2ecdc05d4870b23569f4e4 to your computer and use it in GitHub Desktop.
Save PROGrand/28fa35a7ab2ecdc05d4870b23569f4e4 to your computer and use it in GitHub Desktop.
Migrate git files to lfs

Git + lfs

  • Track file as lfs:
$ git lfs track "*.psd"
  • Migrate files after add to lfs .gitattributes:
$ git lfs migrate import --everything$(awk '/filter=lfs/ {printf " --include='\''%s'\''", $1}' .gitattributes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment