Now I have the question: how can I go back to an older state of my project with projects/git state in den Node-RED UI? For example I do something wrong and want go go back to my commits from yesterday.
From that output, identify the commit you want to go back to and copy the long hexidecimal string at the start of the line.
The next step will depend on whether you want to throw away all of the more recent changes, or if you want to add a commit that reverts the changes but keeps them in the history.
If you want to throw away the more recent changes, you can run:
git reset --hard <the-hexidecimal-commit-id>
If you want to keep the more recent changes in the history, but take the files back to the earlier state, then you can use:
git revert <the-hex-id>..master
It will create a new commit for each commit you are undoing.
In newer versions of git there is also git restore... but I haven't played with that yet.
Once you've done all of that, you'll need to restart Node-RED and reload the editor.
Also you could install gitk and that will show you all the commits in a GUI and allow you to revert them. git gui is also excellent for seeing the changes made since last commit.