Skip to content

Instantly share code, notes, and snippets.

@swoodipto
Last active July 6, 2020 10:18
Show Gist options
  • Save swoodipto/0a12e8cad98151f32794226868e92c92 to your computer and use it in GitHub Desktop.
Save swoodipto/0a12e8cad98151f32794226868e92c92 to your computer and use it in GitHub Desktop.
A boilerplate guide to use git-lfs for design.

git-lfs, A Design Workflow

  1. Ensure git lfs install by git lfs status
  2. In the repo, add the file types you want to track, this adds them to .gitattributes:
    git lfs track “*.psd”
    git lfs track “*.ai”
    git lfs track “*.aep”
    git lfs track “*.prproj”
    
  3. Track .gitattributes:
    git add .gitattributes
    
  4. Follow normal git workflow
    git add file.psd
    git commit -m "Add design file"
    
  5. Push changes:
    GIT_TRACE=1 GIT_CURL_VERBOSE=1 git push -u origin master
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment