Skip to content

Commit

Permalink
Add migration section to fix up old URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
athornton committed Dec 4, 2023
1 parent 40a4687 commit 81faf96
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions git/git-lfs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,25 @@ For instance, if you were working with
git config lfs.url https://git-lfs-rw.lsst.cloud/lsst/testdata_subaru
git config lfs.locksverify false
.. _migrating-git-lfs:

Migrating Git LFS
=================

If you were already using Git LFS with ``https://git-lfs.lsst.codes``
you will find that pulling a repository you had previously been using
fails. This is because the ``.lfsconfig`` in that repository is still
referencing the old LFS URL, which is no longer serving content.

In that case you need to run:

``git config lfs.url https://git-lfs.lsst.cloud/<owner>/<repo>`` and
then try the pull again.

If you know you are going to need to push LFS objects, you can use
``git-lfs-rw`` here instead as described above, or you can configure
that later, if and when you need it.

.. _git-lfs-historical:

Checking out historical commits
Expand Down

0 comments on commit 81faf96

Please sign in to comment.