Download all of your GitHub data
blog.github.com
blog.github.com
I did a one-time migration from GH to GL, but my GH account is still open, primarily because some projects are GH-only, meaning I might continue to make forks, contributions, etc.
Some way of making sure that I can periodically get all of those over to my GL would be nice.
If you're always overwriting history of one to make it match the other, diffing the git logs of each against each other would likely tell you which had items the other didn't, and if it went just one direction or both (i.e. can you just overwrite one with the other or is some manual intervention required).
https://gist.github.com/cfstras/5e40ea264517552e29caf61bbd28...
Setup:
git add remote gitlab ...
git add remote github ...
Then whenever you need to sync: git fetch --all
git checkout -b gh --track github/master
git checkout --track gitlab/master
git merge/rebase gh
git push gitlab
Could probably be done shorter but those steps should do it..A mirroring setup like provided in GitLab (see sibling post) takes that burden away.
The fix here is to use their scoping as intended: it should be amazingly rare to need an access token with such broad access.
The docs says it's "only available to authenticated account owners"; I hope it means you can't use a token for that, but I'm not sure.
I think the most expensive part could be the human time needed to make judgments on the residence of the requestor. Fully automated processes available to all the user based won’t have this extra cost.
https://www.nrdc.org/experts/veena-singla/want-avoid-toxic-c...
Same thing here, because border specific stuff aren't worth the hassle, the lowest common denominator (in this case GDPR) becomes the new international standard.
Additionally some US politicians have proposed copying parts of the GDPR into US law which would pretty much make this a permanent staple.
For GitHub maybe, not true for all (or even most?) non-EU businesses. For most, the "hassle" of ignoring the region requiring GDPR is much easier/safer than the compliance/risk of conformance.
-rw-r--r-- 1 timwolla timwolla 499 Dec 19 19:31 attachments_000001.json
-rw-r--r-- 1 timwolla timwolla 52K Dec 19 19:31 commit_comments_000001.json
-rw-r--r-- 1 timwolla timwolla 72K Dec 19 19:31 issue_comments_000001.json
-rw-r--r-- 1 timwolla timwolla 35K Dec 19 19:31 issue_events_000001.json
-rw-r--r-- 1 timwolla timwolla 34K Dec 19 19:31 issues_000001.json
-rw-r--r-- 1 timwolla timwolla 356 Dec 19 19:31 milestones_000001.json
-rw-r--r-- 1 timwolla timwolla 22K Dec 19 19:31 projects_000001.json
-rw-r--r-- 1 timwolla timwolla 4.4K Dec 19 19:31 protected_branches_000001.json
-rw-r--r-- 1 timwolla timwolla 25K Dec 19 19:31 pull_request_review_comments_000001.json
-rw-r--r-- 1 timwolla timwolla 4.3K Dec 19 19:31 pull_request_reviews_000001.json
-rw-r--r-- 1 timwolla timwolla 51K Dec 19 19:31 pull_requests_000001.json
-rw-r--r-- 1 timwolla timwolla 9.0K Dec 19 19:31 releases_000001.json
-rw-r--r-- 1 timwolla timwolla 80K Dec 19 19:30 repositories_000001.json
-rw-r--r-- 1 timwolla timwolla 75 Dec 19 19:31 schema.json
-rw-r--r-- 1 timwolla timwolla 27K Dec 19 19:30 users_000001.json
attachments:
total 12K
drwxr-xr-x 3 timwolla timwolla 4.0K Dec 19 19:31 ./
drwxr-xr-x 5 timwolla timwolla 4.0K Dec 19 19:31 ../
drwxr-xr-x 2 timwolla timwolla 4.0K Dec 19 19:31 c544f416-10c9-11e7-8337-82f88cac9fcd/
releases:
total 36K
drwxr-xr-x 9 timwolla timwolla 4.0K Dec 19 19:31 ./
drwxr-xr-x 5 timwolla timwolla 4.0K Dec 19 19:31 ../
drwxr-xr-x 2 timwolla timwolla 4.0K Dec 19 19:31 5aa3a138-9c86-11e5-99bc-79a6c3e509eb/
drwxr-xr-x 2 timwolla timwolla 4.0K Dec 19 19:31 …
drwxr-xr-x 2 timwolla timwolla 4.0K Dec 19 19:31 dba26980-d9f1-11e8-8357-3f2750c60e51/
repositories:
total 12K
drwxr-xr-x 3 timwolla timwolla 4.0K Dec 19 19:30 ./
drwxr-xr-x 5 timwolla timwolla 4.0K Dec 19 19:31 ../
drwxr-xr-x 41 timwolla timwolla 4.0K Dec 19 19:31 TimWolla/I've started the practice of keeping backups of somewhat recent "all my data" dumps from each site that offers them.
I.e. whether the argument that you're exempt from deleting data under the GDPR just because it's inconvenient for your storage format is going to fly in the EU. If not there's scary times ahead for Git.
Here's a good example of a 4 year old using (presumably) her full name committing to the kernel: https://github.com/torvalds/linux/commit/690b0543a813b0ecfc5...
If that kid grows up, moves to the EU, and wants Microsoft (GitHub) to stop publishing that content, will they be able to just say "no"?
How about if the kid has had their personal data embedded in the Bitcoin blockchain?
Interesting times indeed.
https://help.github.com/articles/deleting-your-user-account/
I've seen this 'ghost user' around on threads for years....
Of course, that data was compromised the second it was pushed, but, now they're parading the fact that people make mistakes...
What side are you on GitHub? Privacy? Or not?
EDIT: The cloned repos seems good, but following this post: https://stackoverflow.com/questions/3973994/how-can-i-recove... you can easily find some "lost" commit and retrieve secrets. I checked with one of my repo and I realized I had compromised information...