Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update git-lfs directions to reflect proposed Giftless server #638

Closed
wants to merge 0 commits into from

Conversation

athornton
Copy link
Contributor

No description provided.

@athornton athornton marked this pull request as draft September 19, 2023 21:22
git/git-lfs.rst Outdated
Comment on lines 140 to 145
If you want to do this for several repositories inside a loop, or if you want something you can just paste from this page, you can parse the output of ``git ls-remote`` to accomplish the same goal:

.. code-block:: bash

git config lfs.url git config lfs.url https://git-lfs-dev-rw.lsst.cloud/$(git ls-remote --get-url origin | sed -e "s|^origin$|$(git config --get user.name)/$(basename $(pwd))" -e 's/\.git$//' | rev | cut -d / -f 1-2 | cut -d : -f 1 | rev)
git config lfs.locksverify false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If you want to do this for several repositories inside a loop, or if you want something you can just paste from this page, you can parse the output of ``git ls-remote`` to accomplish the same goal:
.. code-block:: bash
git config lfs.url git config lfs.url https://git-lfs-dev-rw.lsst.cloud/$(git ls-remote --get-url origin | sed -e "s|^origin$|$(git config --get user.name)/$(basename $(pwd))" -e 's/\.git$//' | rev | cut -d / -f 1-2 | cut -d : -f 1 | rev)
git config lfs.locksverify false

git/git-lfs.rst Outdated
LFS-backed repository you'll need to configure and cache your
credentials, as described at :ref:`git-lfs-rw`.

Then for each repository you intend to push, you will need to clone that
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Then for each repository you intend to push, you will need to clone that
For each repository you are planning to push to, there is a one-time setup you have to do when you _clone_ the repository.
You will need to clone that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants