Skip to content

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

@michael-k

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.

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