If I try to interactively add a file to git,
git add -i
I get this output:
*** Commands ***
1: [s]tatus 2: [u]pdate 3: [r]evert 4: [a]dd untracked
5: [p]atch 6: [d]iff 7: [q]uit 8: [h]elp
What now> 1
staged unstaged path
1: unchanged +1/-1 index.html
I'm assuming this +1/-1 means that there's one unstagged file, but why the +1/-1? What doe sit mean? Why not just 1?
This is indicating that index.html
has had one line removed, and one line added. This is typical for Git when you change a part of a line.
It is telling you how many lines are added/deleted. +1/-1
likely means you modified a single line.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With