Skip to content

Track: Inconsistent behavior in .git directory compared to git add #353

Closed

Description

@michael-k

git add doesn't allow you to run it when in a .git directory.

$ cd repo/.git
$ git add ../some.file
fatal: This operation must be run in a work tree
$ echo "$?"
128

git lfs track doesn't care and creates a .gitattributes file in repo/.git.

Activity

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