- The behaviour is to stage everything when the
stage
keyword is omitted. - When the stage keyword only includes negative entries then everything except those listed will be staged.
- When at least one positive entry is listed everything is removed from the staging except the positive listed items.
stage everything except the file or directory called “negative”
stage:
- '-negative'
only stage the file or directory called “positive”
stage:
- positive