Instead of sharing code in the SourceForge, I want to upload as code the ".git" directory of my project.
So, I search all files inside ".git" for remote repository credentials (it is the GitHub).
I found in ".git/config" this:
[remote "origin"]
url = https://<user>:<GITHUB_PRIVATE_TOKEN>@github.com/<user>/<project>.git
Of course I remove this line.
After that, can I share ".git" directory of my project to everyone? Or it is a security exploid?