I have created a simple list API
in C
and I want to release it via Github
.
Is there any way to change the license after the creation of the repository?
If you release it with a license, you allow people to use it as the licence describes. You can't just say "no I changed my mind I don't want it to be under GPL". Of course your future release may be in another license (GPL forces other people's modified versions to be GPL, but you, as the creator, may release new versions of your work under a new license).
Websites like choosealicense.com may help you to choose a suitable license. The license picker provides some templates that can be committed to your repository; for an existing repository you can bring it back this way:
LICENSE.md
or LICENSE.txt
to show up the license picker again