Thursday, March 2, 2017

Installing Git LFS

Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.


Steps are simple 

1) Download and install the Git command line extension. You only have to set up Git LFS once.

git lfs install

2) Select the file types you'd like Git LFS to manage (or directly edit your .gitattributes). You can configure additional file extensions at anytime.

git lfs track "*.framework"

3) Make sure .gitattributes is tracked

git add .gitattributes

4) There is no step three. Just commit and push to GitHub as you normally would.

git add file.psd
git commit -m "Add framework file"
git push origin master

One can also do a command line + Source tree approach, in which case, before pushing to server,  if open the project in Source Tree, below will be asked to the user. 



references:

No comments:

Post a Comment