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.
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.