Skip to content

Instantly share code, notes, and snippets.

View adrin425's full-sized avatar
💯

adrin425 adrin425

💯
View GitHub Profile
{
"keys": [
{
"kty": "RSA",
"n": "uX6SZ6vrpDoQMcHdnsW96DlEK1gJ4bs075pQkJiWdLHq4GAfBCGwFwY65_eDFAw577Nm9uQCBlG-lHnFR9d5G9gPi7KNUUGhaYjy7sdLaX-sruudUEi9Lqr8ppim_n7qagvRu3F4YB00MdymjigDn36XQJsWi5LdCwrlSMqKYzNEira9_m68f6fU4drloZBSdadZGtyk4ulG6YE2Sdq7ZZpO2Z6ypE__pFYYqLJFxcoLGo-XYp-PgkKkgFnkiP-2tw2Cq7d6XuURlcxnkg2z0FrdOcpZTAPvlSLlCjN-5dhkEpQR6stbS50KLsnH4PHlbu0MSNBEib4pV1rTaCNNb5K3JnImGG2Z4ADWYEWW0KtAYeSCs30TGEl5yqgRqB5R14RooLkv54CehpiEbBjxIX56PMVe-lJ85SG8Uk-Ef06AWBC6LLBNN6vxoc4XYPMRwWgOScrfbkpxnOjzdLjLktNNP_3f38Hx-a72CNVuLx1n4nY0r1zeFgz8bE_CKwuB4H6JAw-qTFWKjNAk9lsRyip2C1NXQcuRkvHxPJDpwt5DQ6eOLpUdeLlkoBS027OHBjrJp8EMxBuopnS24pjv0BpunArObHB7auZHrrQOBAiyxeg8bW9kMrlLLlm1XksnlRXUraBWsKpZESdUyQ7xStkIIkLZZC2aJi6AZTnWJxE",
"e": "AQAB",
"alg": "RS256",
"use": "sig",
"kid": "236"
},
@adrin425
adrin425 / gist:02759463a6750bdef99317c3f6ac542b
Created October 1, 2020 02:00 — forked from adeluccar/gist:d105299f2d5af55e3e96f9b989e7eb48
How to Flatten the History of a Git Repository Safely
git checkout --orphan future-master
git add -A  # Add all files and commit them
git commit
git branch -D master  # Deletes the master branch
git branch -m master  # Rename the current branch to master
git push -f origin master  # Force push master branch to github
git gc --aggressive --prune=all     # remove the old files