Git query

Having cloned a repository with (for example)

git clone https://github.com/emoncms/device.git

Why when I do a git status I get this output?

On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   README.md
        modified:   Views/device.js
        modified:   Views/device_api.php
        modified:   Views/device_dialog.css
        modified:   Views/device_dialog.js
        modified:   Views/device_dialog.php
        modified:   Views/device_view.php
        modified:   data/Control/smartplug.json
        modified:   data/Control/wifirelay.json
        modified:   data/OpenEnergyMonitor/emonpi-HEM.json
        modified:   data/OpenEnergyMonitor/emonpi-SPV1.json
        modified:   data/OpenEnergyMonitor/emonpi-SPV2.json
        modified:   data/OpenEnergyMonitor/emonth.json
        modified:   data/OpenEnergyMonitor/emontx-HEM.json
        modified:   data/OpenEnergyMonitor/emontx-HP.json
        modified:   data/OpenEnergyMonitor/emontx-SPV1.json
        modified:   data/OpenEnergyMonitor/emontx-SPV2.json
        modified:   data/OpenEnergyMonitor/openevse.json
        modified:   data/amig.json
        modified:   data/amrm.json
        modified:   device_controller.php
        modified:   device_menu.php
        modified:   device_model.php
        modified:   device_schema.php
        modified:   device_template.php
        modified:   files/1.png
        modified:   files/2.png
        modified:   files/3.png
        modified:   files/4.png
        modified:   files/5.png
        modified:   files/6.png
        modified:   files/7.png
        modified:   module.json

no changes added to commit (use "git add" and/or "git commit -a")

I have not changed anything!

Just tried it here;

pi@raspberrypi:~/device $ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
pi@raspberrypi:~/device $

Are you sure that you haven’t recursively changed file/folder permissions/ownership?

Paul

Like this for example;

pi@raspberrypi:~ $ chmod -R 777 device
pi@raspberrypi:~ $ cd device
pi@raspberrypi:~/device $ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   README.md
        modified:   Views/device.js
        modified:   Views/device_api.php
        modified:   Views/device_dialog.css
        modified:   Views/device_dialog.js
etc. etc......

Not that I am aware of.

Ah well a git reset --hard fixes it. It is strange though.