Skip to content

Clarification on the force option for the gitadd task #146

@tiggeymone

Description

@tiggeymone

Hello grunt-git developers,

I've been using the grunt-git plugin, and I would like to get some clarification on the force option for the gitadd task. I've read the documentation, but I'm still not entirely sure about its behavior.

From my understanding, the force option allows the addition of changes to files in the index even if the file already has a modification present in the index. This means that new changes to the file will be added to the index along with previous changes, even though they might be ignored otherwise. Is this the correct understanding of the force option?

Additionally, does the force option also allow adding files that are specified in the .gitignore file, or does it only affect files that already have staged changes in the index?

I would appreciate any insights or clarification on this matter. Thank you for your time and for developing this useful plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions