Question About Setting This Up
WeirdBeardDev opened this issue · 4 comments
I'm relatively new to git, been using it for the last few months, and I'm completely new to LFS. I'm working on learning game dev with Unity and had LFS configured for github but quickly exceeded the storage limit. I am trying to accomplish having my code repo point to github while the lfs repo is on a local folder where Dropbox will backup the large files. Your solution seems to fit my needs perfectly, but I can't get it to work.
Here are some relevant details:
Windows 10
git v2.21.0.windows.1
lfs v2.7.1
code base (lfs pointers) - github.com
lfs files - d:dropbox\dev\lfs\sandbox
I can't get the git remote add folderremote <url>
command to take. I read that remotes can use file://
and tried file:////d:/dropbox/dev/lfs/sandbox
, however, git lfs env
displays it as Endpoint=https://d////Dropbox/Dev/LFS/Sandbox (auth=none)
followed by SSH=d:///Dropbox/Dev/LFS/Sandbox
. Then when I push I get an error saying ssh: Could not resolve hostname d: ...
.
When I take the file://
out then LFS config usually reports Endpoint=<unknown> (auth=none)
and Endpoint (folderremote)=<unknown> (auth=none)
.
This leads to another point of confusion for me, the lfs.<url>.standalonetransferagent
command. I assume for a file location it would look something like lfs.d:/dropbox/dev/lfs/sandbox.standalonetransferagent=lfs-folder
.
What am I missing?
While typing this I thought about trying to use the Dropbox URL for my remote URL. I'll test that next.
"url" has to be link to your github repo for example https://github.com/ZeusLT/example-project.git
git config --add lfs.customtransfer.folder.args "C:/path/to/your/folder"
"C:/path/to/your/folder" will be the location of your LFS "data" folder (folder size will be kinda large)
In your place it will be the dropbox folder you want to sync
Everything ran without errors, however, after the git push ...
shouldn't I see something in the Dropbox folder? I put my git config and lfs env on pastebin.
Edit: I double-checked that the lfs-folderstore.exe is in my path.
lfs-folderstore.exe has to be in one of the folders of system environment variables "PATH". For example in system32.
Also make sure you added something like:
*.mp4 filter=lfs diff=lfs merge=lfs -text
to your .gitattributes to actually use LFS
I got it, I'm not sure what I was doing wrong before but I tried it on a fresh repo and it worked.
Thanks for your help.