Why did GitHub decide my (100% C) repository was 50% C++? [duplicate] - github

This question already has answers here:
GitHub changes repository to the wrong language
(14 answers)
Closed 5 years ago.
I have a GitHub repository that is C-only. After my latest commit, in which I modified preprocessor spacing in a header file, GitHub decided my repository was 50.2% C++. I clicked on the link to look at the C++ code and it showed my header file portable.h.
Why does GitHub think my repo is 50% C++? And more importantly, how can I change its mind?

I figured out how to fix it. I added a linguist override line to my .gitattributes file:
*.h linguist-language=C
I'm still not sure why GitHub decided the file was C++. If an answer is posted which solves that question, I'll accept it.

It might be related to the fact that C++ is a superset of C, it means any C project is also a C++ project.

Related

How do I file a bug or feature request about github.com---as in THE github? [duplicate]

This question already has answers here:
Where can I report a GitHub bug?
(8 answers)
Closed last month.
I found a minor bug-like behavior in the GitHub interface. Or maybe what I am really after is a new or improved feature.
Is there a public GitHub repo for the GitHub code base? Or, where is the appropriate place to file this issue?
Any web search with terms like "GitHub" along with "issue" or "bug" inevitably leads to instructions for how to file GitHub issues or submit feature requests for GitHub repos in general. There is too much noise to find results about the GitHub itself.
I finally found it. I hadn't thought of looking searching for "bug in GitHub website." Adding "website" led me to GitHub support.
https://support.github.com/request
Feature requests go to the discussion board. Bug reports go here

How do I delete a file in my GitHub repository? [duplicate]

This question already has answers here:
How to delete files in github using the web interface
(4 answers)
Closed 9 months ago.
How do I remove a file from my GitHub repository?
Here is a screenshot of the file in question
Click on it, then you'll see a delete icon on the right side of the code header.
Delete the file which you want by using your IDE and push it again to your target repository with a proper commit. This is the safe way, I know.

Program for getting and uploading latest version of a project? [duplicate]

This question already has answers here:
How to use Git for Unity3D source control?
(18 answers)
Closed 5 years ago.
I am working with a team of friends on a couple Unity3D projects.
I was wondering if there is some kind of program we can use to upload a version of our project (example: "Game1 v1.0") and then either one of us can download that version, edit it, rename the version (example "Game1 v2.0") and then reupload the updated version with the program just adding or changing the edited files and not the whole project to save time.
I hope I was clear enough on my description.
Is there some kind of a program that can help me with this problem?
Always use Git or Mercurial when working on something (even if alone).
If you want a GUI frontend, use SourceTree and BitBucket for repos (GitHub offers only public repos for free).

How to measure public interest in your github project? [duplicate]

This question already has answers here:
How to see count of project downloads on GitHub? [duplicate]
(3 answers)
Closed 9 years ago.
I've started a new project on github, and I wonder if there is a way to see if anyone downloads the code at all. I would imagine if anyone does then it would be a clone request, but I can't find a way to access that count. Absent forking and feature requests, I can't tell if there is any interest in project, and I have no idea if it's even worth keeping it on github at all. Anyone knows what to do?
I don't believe that this information is available.
Most of the interest metrics I've seen at GitHub revolve around the number of forks and stars a repository has. Of course, the number of commits and contributors are also useful.
UPD.: GitHub released traffic analytics https://github.com/blog/1672-introducing-github-traffic-analytics
There is a service that measures amount of traffic - https://bitdeli.com/ , of course it's not perfect, but might give you a picture.
You just need to add their embed code (image) in readme, take a look at example on my Magnific Popup repository (at the bottom of page).

Hudson, triggers based on tagging in SVN [duplicate]

This question already has answers here:
Hudson: how do i use a parameterized build to do svn checkout and svn tag?
(2 answers)
Closed 3 years ago.
Is there a way or does anyone know of a plug-in that I can use so that my builds will be triggered by tagging in SVN? I have a down stream project that I want to only contain tagged versions of its up stream projects. So, if anyone knows of another possible solution to this problem, I would appreciate other suggestions.
Thanks!
Set up a regular project with an SCM trigger that points to the SVN tags directory.
This way, it will get triggered whenever a new tag is created.