I was assuming that both work in the same way. Both add every file onto index. But I seem wrong.

What's the difference between git add . and git add -u?

Edit
Report