Github contributions graph empty after job change - github

I changed jobs and my beautiful green Github contributions graph is now almost completely empty. I worked on the same project every day for one year and now all my hard work looks like it's gone!
I realise this is because I was a collaborator on a private repo at my old company. When I started my new job, the old company removed me as a collaborator on their project.
I have looked through the docs on Github but it looks like that is how the graph works. Is there any way to get it back? How can I stop the same thing happening at my next job?

I have tried a lot but unable to find a fruitful solution.
From their website We recommend starring any repositories you contribute to. That way, your commits to those repositories will remain in your contributions graph even if you leave the organization that owns the repository or delete your fork of the repository.
I have tested this approach by creating another github account and starring the repository which doesn't work as they said.
I also have gone through this, but this doesn't help to solve the issue.
I don't think there is any way to show contribution if owner removes collaborator.

Related

Show commits and description but hide code in repository [Github]

I've almost done my first big project in React+Typescript+Redux and started it on Firebase with users and some database conneted with logged users.
It was supposed to be my project to portfolio before looking for my first dev job, but it start to be very complex.
Now I have idea to use it in the future to make commercial app.
So the problem is I don't want to publish my code on github, but at the same time I want to publish all my commits and repository description on Github for recrutiers (and all my tasks from trello table). Is it possible to publish only commits and description from github repository?
No, this is not possible. If your repository is public, anyone can clone the entire repository. The only way to make your code inaccessible is to make the repository private, which means nobody can see it without having permssion.

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.

Monitoring changes in collaborators on github

I have a pet project where I am trying to get some stats about collaborators (core team members, as per https://github.com/CoolProp/CoolProp/wiki/Contributors-vs-Collaborators). Basically I want to know when people were added to a repo. Since I want to get that info retroactively, I was thinking of using the github archive.
According to the docs (https://developer.github.com/v3/activity/events/types/#memberevent) MemberEvent is what I am looking for. Yet, as far as I can tell, there are barely any events of that sort in the Github Archive. All I find are 'added' events. Is there somewhere on a repo's page where I should be able to see it so that I can triangulate what i retrieve from github archive and the project page?
Thanks a lot!

GitHub - After removed from a repository it doesn't show my contributtions

On my Github profile I did a lot of contributions in private repositories of my previous job.
But, they removed me from their repositories and my contributions graph become almost all blank, as if I never contributed or sent code with my GitHub account profile (because most of my contributions were in my previous job repositories).
I don't think that this is fair. Other future employers may think that I don't have much experience or contribution because I don't have code to show to them.
Is there a correct way to think about this or solve it? What should I do?

Can the owner of a repo see clones?

I know that the owner of a repo is able to see a fork request when one is performed. But what about a clone? Can the owner of the repo see when someone clones it?
The question is too general, but let me answer the question as it stands now.
Can the owner of the repo see when someone clones it?
No, they cannot. If I go to one of your repositories and clone it to my local hard drive, the owner will not be able to view that activity. And why would you want to? Likely there are many clones of your repository.
Know that clones can live on other systems than GitHub.
Now, will the owner know that someone forked their repository on GitHub itself?
Yes, they will, assuming they pay attention.
I did the following:
Logged in as my main account
Created a repository
Set up a new dummy-account on an alternate email address
Forked the repository I created earlier
Logged back into my main account
This is what I see on my first page after logging in:
If I do the following:
Click on my repository
Click on the small 1 to the right of the "Fork" button:
Click on the "Members" tab:
Then I see this:
Conclusion:
Yes, the owner of a repository will see when someone makes a fork on GitHub, but no, they will not see it when someone makes a clone somewhere else.
As far what I found you CAN'T know when someone clones it (if you mean exact time) nor who cloned it.
But you can know how many clones were made on which date and the number of unique cloners from ths url.
https://github.com/{usernamme}/{reponame}/graphs/traffic
Insights tab:
However one thing I find fishy is unique cloners is more than unique visitors, how can someone decide to clone even without visiting the repo. I guess it may be bots in such cases.
You can use clone graph on GitHub to find out how many times your repository's source code is actually cloned in a given day. More information can be found here https://help.github.com/articles/about-repository-graphs/#traffic
Yes, it can be done.
Go to your account landing page- https://github.com/yourusername
Click on the repo you want to check traffic for.
Click on Insights on top navigation bar.
Click on Traffic on left navigation bar.
Voila, you will get your traffic including no of clones with a timeline.
Reference: clone graph
Open Github, find your repo, click on it. Then click on Insights and finally click on Traffic. Github shows a graph Traffic including git clones. Salutes!
As for now we can obtain this information with Rest API /audit-log,
but it is available only for Enterprise users with org:read permission.
We can see the actual users that have preformed fetch, clone and many more actions.
https://docs.github.com/en/rest/reference/orgs#get-the-audit-log-for-an-organization
as long as you have access to the repo, aka an ssh key on the filesystem with the remote, then yes. you would do as follows:
git fetch some_remote
git log some_remote/some_branch