Of course, a major inconvenience here is that we still have the. Then we could proceed with the individual commit updates during the rebase: Basically, the date setting needed to be two commands: set the committer date as an environment variable once: We needed to modify the process a bit for the Windows machines we were on. This StackOverflow answer from Ortomala Lokni provided a potential solution. Effectively a zero value in the date/time field for the commit, which seemed to confuse the graphical Git clients. We reviewed the logs in the command line client and noticed that the timestamps on all the import commands were December 31st, 1969. When we attempted to view the Git repo in Source Tree and also Git Fork, the program either crashed or hung spinning on a load. We had the script also run the import command above and with that we had the remaining files where they needed to be. This came up with a couple hundred files for us. We wrote a Python script that did an os.walk() across our project and compared it against the results of git lfs ls-files to see which of the new files had yet to be added to the LFS. Git lfs migrate import -no-rewrite path/to/file.ext We noticed this because Git would notice some of these other files (even though they hadn't been modified) and give us the dreaded "Encountered X file(s) that should have been pointers, but weren't" error whenever doing Git operations.Ī little Goolging led us to this method of getting the rest of the files into the LFS: Any new commits we made that touched those files would automatically move them, but there were plenty of files that didn't get updated. However, after doing this, the various Git clients (command line, Source Tree, etc.) didn't actually move all the *.ext files into the LFS. The obvious way to do this was to update the filters in the. We ran into a problem a while back where we had a Git repo that had been in use for a while and then we decided one of the common file types should be in the LFS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |