I am having trouble with my gitignore file.
My directories look like this:
/root
/.gitignore
/README.md
/embedded-programming-periode-3/
/somefolder/
/somefiles.txt
/main.c
And I want to ignore everything except: .gitignore, README.md and main.c
How would I go about this? I tried various things without success.