Skip to content

Commit c7eeaf4

Browse files
azeembaEndBug
andauthored
docs(README): add how to auto-detect deleted files (#468)
* Add how to autodetect deleted files The existing instructions make sense for when a predetermined list of files need to be removed. This is likely not a common use case so I shortened that explanation. Also added the explanation on how to use `--no-ignore-removal` as the `add` setting to have deleted files autodetected. Fixes #467 * docs(README): update "Deleting files" paragraph Co-authored-by: Federico <[email protected]>
1 parent 50e9817 commit c7eeaf4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ You can also use JSON or YAML arrays (e.g. `'["first", "second"]'`, `"['first',
108108

109109
### Deleting files
110110

111-
You can delete files with the `remove` option: that runs a `git rm` command that will stage the files in the given path for removal. As with the `add` argument, you can use every option `git rm` allows (e.g. add `--force` to ignore `.gitignore` rules).
112-
The script will not stop if one of the git commands doesn't match any file. E.g.: if your command shows a "fatal: pathspec 'yourFile' did not match any files" error the action will go on.
113-
You can also use JSON or YAML arrays (e.g. `'["first", "second"]'`, `"['first', 'second']"`) to make the action run multiple `git rm` commands: the action will log how your input has been parsed. Please mind that your input still needs to be a string because of how GitHub Actions works with inputs: just write your array inside the string, the action will parse it later.
111+
The `remove` option can be used if a predetermined list of files needs to be removed. It runs the `git rm` command, so you can pass every kind of argument with it. As if with the [`add` input](#adding-files), you can also use JSON or YAML arrays to make the action run multiple `git rm` commands.
112+
113+
If you want deleted files to be auto-detected and committed, you can use the [`--no-ignore-removal`/`-A`](https://git-scm.com/docs/git-add#Documentation/git-add.txt--A) git arguments.
114114

115115
### Pushing
116116

0 commit comments

Comments
 (0)