Skip to content

git-lfs is giving me error because of ~/.netrc file #2943

Closed

Description

@ankit-shah2

[root@ip-192-168-1-136 infobright-test]# git lfs checkout
bad netrc file /root/.netrc: line 4: keyword expected; got protocol

I installed git-lfs and did git lfs install --local from the repo which is using git lfs.

Now I want all the actual contents , for which I am doing git lfs checkout then I am getting this error.

Contents of my .netrc file is ->

machine github.com
login
password
protocol https

Please help

Activity

  1. ttaylorr commented on Mar 27, 2018

    @ttaylorr
    Contributor

    Hi @ankit-shah2, thanks for opening this issue! I think that this is a valid error, since that is indeed a malformed ~/.netrc file, and Git LFS can't confidently proceed without valid credentials. Specifically, I think that the protocol directive is undefined [source].

    Can you try removing the protocol line and running this again? If you run into anything else similar, please don't hesitate to comment on this issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions