From a clone of a from a Git repository that supports LFS, I want to push to a new remote Git repository that does not support LFS.
The current clone shows a number of LFS files when I use git lfs ls-files --all.
I created the new Git repository using git init --bare d:/new_repo.git.
Then I added the new Git repository as remote using git remote add new d:/new_repo.git.
When doing git push new master, the following error is generated:
Uploading LFS objects: 0% (0/10), 0 B | 0 B/s, done.
batch request: missing protocol: "d:/new_repo.git/info/lfs"
error: failed to push some refs to 'd:/new_repo.git/'
As I understand, the problem is that Git LFS is not supported in the Git repository new_repo.git. However, that is actually what I want, since I want to avoid the LFS files in the new repository, and just have a regular Git repository without LFS use.
How to make Git push from repository with LFS support to a remote repository without LFS support?
Or is there some basic Git or LFS concept that I have misunderstood, so this question does not make sense ? :-)