Closed zain-sohail closed 3 years ago
Does this affect the way these files are called? If so, please write something in the online documentation, otherwise you can simply merge.
It doesn't. Git LFS creates a pointer file in the repository pointing to the LFS server but the file names stay the same.
Thanks. My impression is that now they are not copied every time you upload a commit, right? Are there caveats for making new commits now? If not, please merge into the main branch when possible.
Thanks. My impression is that now they are not copied every time you upload a commit, right? Are there caveats for making new commits now? If not, please merge into the main branch when possible.
If you add a new .h5 file and commit it, the file will just become a pointer inside Git, while it stores the contents on remote Github server. Any new .h5 file will automatically go through that procedure since .gitattributes has that defined. We can also add other extensions or subfolders.
Used Git LFS to migrate already commited .h5 files to lfs using following command in main directory:
git lfs migrate import --no-rewrite -m "Import .h5 files to lfs" tutorial/raw/online-0/fl1user2/*.h5
For new files, the .gitattributes contains an attribute that would automatically migrate the h5 files to lfs. Any new file extension or files can be tracked using:
git lfs track "<file_ext>"