Giter Club home page Giter Club logo

fakegit's Introduction

For more efficent Golang version, please check it here: https://github.com/hanbang-wang/FakeGit-Go


FakeGit

pypi

FakeGit is a great tool to fool yourself and others, it will modify your local git config file, deceive git to recognize the committer as somebody else.

You can use it on your own project or any repository, if you have push privilege.

Example

FakeGit Demo

For example, the father of jQuery and the father of PHP is committing with a funny slogan, with my great respect and no offence for sure.

Those are real commits and will be recognized by Github and almost any git hosting websites as a user of one, if such user exists.

Installation

git clone https://github.com/hanbang-wang/FakeGit
cd FakeGit
python setup.py install

Or use pip:

pip install fakegit

Usage

fakegit <command> [--user] [--help|-h]

FakeGit passes all your arguments into original Git cli, except for the following:

change       Change your local identity for ever
recover      Quickly delete 'user' params in your local git config file
--help, -h   A brief guide

FakeGit intercepts --user with exact one arg following, which is the committer's identity.

Identity Format

For exact input, use name <email> format, for example:

--user 'John Doe <[email protected]>'

or if you want to keep the email blank, just keep it blank:

--user 'No Email <>'

I also provided a quick identity lookup for Github users, fill in name only:

--user 'example'

Examples

fakegit commit -a -m "A example." --user hanbang-wang"

It will use Github API with the id hanbang_wang, which is me, lookup my commits history and my commit email, generating a format like SuperFashi <[email protected]> , use it to make commit messages.

But I recommend to specify a user info:

fakegit commit -a -m "A example." --user "SuperFashi <[email protected]>"

of course you can use any git command by FakeGit:

fakegit push --user "whateveryoulike <>"
# same as `git push`

But it would not make any difference, since only the commit command will use user params.

Additions

fakegit change will change your local identity for ever, therefore it must followed by --user, or it will throw an error.

fakegit recover is a quick tool for you to delete user params in your local git config file, in case of tired being someone else, or need a reset after a force quit.

License & Something

This little project is unlicensed, check LICENSE file for more information. But you should read the following carefully:

This project has something to do with others identity, so you may end up becoming an identity thief or harm the reputation of others or anything illegal may happen.

I do not take any responsibility, as I hope this project will only use for harmless jokes, educational or research purpose.

fakegit's People

Contributors

ralic avatar superfashi 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.