Migrate from old LFS repo to new LFS repo?

前端 未结 2 1491
慢半拍i
慢半拍i 2021-02-15 16:03

There is LFS git repository hosted at Bitbucket server. Now we need to create new LFS repo and move repository there with LFS storage.

How to do this?


For

2条回答
  •  清酒与你
    2021-02-15 16:17

    You can modify the lfs endpoint in your local repo by doing something like: git config lfs.url = "https://my_other_server.example.com/foo/bar/info/lfs"

    If you need it to stick in the repository, they recommend: git config -f .lfsconfig lfs.url https://my_other_server.example.com/foo/bar/info/lfs git add .lfsconfig

    See https://github.com/github/git-lfs/wiki/Tutorial#lfs-url

提交回复
热议问题