Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make private repo contribution history public

Tags:

github

I would like to show a client my contribution history towards a project, without making the repo public. Is there a way to do this through github (eg: not taking screenshots of everything).

Ideally they could see at least the number of contributions towards the project; it would be great if they could also see the graph features (punch card, timeline, etc.).

Is this possible?

like image 885
Joker Avatar asked Jun 16 '13 22:06

Joker


People also ask

Do contributions to private repos show up?

You can opt into sharing your private contributions in your profile settings. Details of the issues, pull requests, and commits you have made on private repositories are only visible to your fellow repository collaborators.

Do contributions to private repos show up on GitHub?

Your GitHub profile shows a graph of your repository contributions over the past year. You can choose to show anonymized activity from private and internal repositories in addition to the activity from public repositories.

How do I see all contributions on GitHub?

You can see your contributions over time by either clicking Show more activity at the bottom of your contribution activity or by clicking the year you're interested in viewing on the right side of the page.


2 Answers

I created a script that solves this problem:

https://github.com/ebrian/gitdummy

It will transfer all of your commit messages and dates for a given email address out of an existing repo and into a dummy repo that you can then push up to your GitHub account. It won't transfer source code, project names, or project team members' commits.

Enjoy.

like image 91
brian Avatar answered Sep 22 '22 23:09

brian


EDIT You can now show private contributions on your GitHub profile page.

https://help.github.com/articles/viewing-contributions-on-your-profile-page/


No, this is not supported through the GitHub website, unless you want to create an "organization" and give the client read-only access to the whole repo.

Clone the repo locally and use the git log command to dump the project history to a text file. You can then give the client this text file. This won't give you GitHub's visualizations, but you could make some of your own in Excel or some other program.

like image 39
sourcenouveau Avatar answered Sep 21 '22 23:09

sourcenouveau