Coder Social home page Coder Social logo

github-author-rewrites's Introduction

Rewrite every Git commit email in your Github account

Did you know anyone can view your Git commit email, just by adding .patch to the end of a public Github commit URL? Try it!

This repo allows you to specify a list of repos you'd like to have their Git commit author details rewritten. Say, for example, you've used your personal email address for all Git commits in the past and now you want to hide them all.

It uses uses git filter-repo under the hood to perform rewrites.

Prerequisites

Install git filter-repo on your machine.

Instructions

  1. Create a list of repo names

    An easy way to get all your repo names is to navigate to your personal Github repositories page (i.e. github.com/<username>?tab=repositories), and run the following script in the browser console:

    let store = ""
    document.querySelectorAll('#user-repositories-list > ul > li > div > div > h3 > a').forEach(a => {store += (a.innerText + "\n")})
    console.log(store)

    The good thing is you can use Github's filter on the page to select specific repositories (e.g. only Public repos)

  2. Save the list into repos.txt, without newline at the end

  3. Add your username to clone.sh and run.sh, in the username Bash variable

  4. In the mailmap file, input the list of emails you'd like to rewrite

  5. Clone your repos using chmod +x clone.sh && ./clone.sh

  6. Perform the rewrite using chmod +x run.sh && ./run.sh


That's it! It shouldn't take more than 20 minutes for the whole process.

github-author-rewrites's People

Contributors

leohku avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.