Github Activity Graph - github

I have recently contributed some files to my github account. You can find it under here. The contributions are correctly displayed in the contribution activity under the graph. However, the graph does not update (the squares don't become green). I have read all the helps from Github, checked out dozens of webpages, but I simply can't find a solution. Can you guys do?
Thank you so much for your help!

Can you try another web browser, or clean your browser cache?
I see the green square on graph for 3 contributions from "Sep 18, 2016".
It will probably be something with caching in your web browser.

There isn't quite enough to go off here so I'm going to go out on a limb.
My guess is that you had the repo and everything was fine. Then you got a new computer, downloaded the files, are able to change and push but (as you mentioned) no credit the work you did. If that's the case, what is likely is that you have a config problem. Github is crediting someone or something else, just not you.
How to fix it:
git config --global user.name "<your github user name>"
git config --global user.email "<the email account you have for github>"
How to tell:
I put this last because the fix is simply easier to do.
On your computer and in the repo that isn't getting credit type
git blame <file you've made recent changes>. Look for two different names. Unfortunately, it doesn't show email but use this as a first go. If you don't see any differences and there is a chance (hence the reason to simply do the fix first) no email is configured or the two emails differ.
git blame --line-porcelain <file you've made recent changes>
From there carefully look at the first two lines (author and author-mail) and look for discrepancies.

Related

How can my GitHub repo have 1 visitor but 12 clones?

This has baffled me for quite a long time.
I notice that anyone with a link can download the repository. But the question is, where do they get the link from? I cannot seem to find a page on GitHub listing all the newly published repo.
Everytime I publish a new repo, there would be 3~6 mysterious clones follow shortly after, even when the number of visitor remains at most 2 persons.
While I welcome people to find out what my code can do, it somehow gives a pressure on me not to publish unfinalized code, and also not to amend the content of my repo after publishing it because they might already have cloned it before the changes are made.
Alright, it has 2 visitors (including me) to be exact:
You have no way to see who has checked out your repository using standard git commands such as git clone, but you can see who has forked your repository on GitHub in the Traffic section under Insights.
Now my first thought would be that those people cloned your repository outside of Github as you don't need to be a Github user to clone repository (so Github couldn't keep track of them and you wouldn't be able to see them).
Good luck, hope this helps.

Is it possible to close a GitHub/GitLab repository?

I haven't found anything about closing a GitHub/GitLab repository. I guess it's not feasible.
By "closed", I mean: it's possible to browse it/clone it, but not to create new commits/branches.
Maybe there is some kind of equivalent or other way to achieve this on either GitLab or GitHub for this? Bonus point if there is a readable error or message somewhere stating that the repo is closed.
On GitHub, you can "archive" a repository, making it read-only, which seems exactly what you're looking for. You can find a button to do so right in the settings of your repo, that is https://github.com/<username>/<repository>/settings. A banner will be shown stating that the repository is archived and no further modifications (e.g. new commits or branches) are possible. See this help page for more info.
On GitLab, the same thing can be done from Settings > General > Advanced settings > Archive project. See this help page.

Place for GitHub Snapshot Archives (Source Code)

I am looking for a place which maintain GitHub archives (Source code) periodically.
My requirement is, I need to analyze status of Java/C++/Python GitHub projects over the past years and identify trends of Softwares. For my analysis, I need the exact picture of GitHub for past couple of years. If there is anyplace which checkout GitHub projects periodically and make it available for research purposes, I would like to know a such place.
NOTE:
As far as I know GH Archive maintain, history of GitHub events. But what I need is the exact picture of source codes.
Why I can't go back to the commit history and find the exact picture? I won't be able to consider about deleted project if I consider current picture and try to go back to history.
For analyzing repos hosted on GitHub.com, you may need to contact GitHub support.
They may have these trend reports and share/sell them to you.
Hope this helps!

Wrong e-mail address in "git log"

I commited several files to my repo without having a .gitconfig file with username and e-mail details, so git took the wrong e-mail I specified in my linux /etc/hostname file.
This is the repo I'm talking about, the grayed-out commits with name "Leslie King" don't link to anything:
https://github.com/zoliky/dotfiles/commits/master
Is there anything wrong in leaving as is? I don't really want to mess with modifying the git log. I will continue commiting with the good e-mail from now on. I'm just wondering if there's anything wrong in leaving the old commits as is.
No, under normal circumstances this will not be a problem.
The only place it may be an issue would be if you were making submissions to a larger Open Source project that requires all submitters to sign a contributors agreement, the automated systems that manage these would see this code as being contributed by 2 separate people (1 per email address).
If you really want to "fix" it then you could look at this set of instructions https://help.github.com/articles/changing-author-info/

Unedited files not showing up in repository?

Very new to Github and I downloaded the desktop application in hopes of understanding it better. What I'm trying to do is commit/push files by dragging them into my repository folder, but they don't show in application when moved? I tried editing a txt file and as soon as I save it, it appears. I don't want to have to edit every file I add to my repository as I edit it elsewhere. How do I make the non-edited, dragged-and-dropped files appear?
Also, is there an official GitHub support forum? I can't find anything on their website where you can ask questions/etc and I'm not sure StackOverflow is the best place for this question.
Thanks!
That's the way how git works. It doesn't make sense to add every time the unedited files.
When it notices you added/edited/removed files, git will know that.
I pasted a file (blocks.gif) in my repository and in GitHub Desktop it I see the following (click the 1 uncommitted change) and you should see the new files there. Then you can write a commit message and commit the changes.
Also, is there an official GitHub support forum?
When you need help using GitHub, you can always contact the support team (or write an email to support#github.com). They are awesome people. :)
https://github.com/contact