4 Star 0 Fork 0

Gitee 极速下载 / fakegit-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/hanbang-wang/FakeGit-Go
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Unlicense

FakeGit

rcard

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

go get -u github.com/hanbang-wang/FakeGit-Go/cmd/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 <johndoe@example.com>'

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 <admin@superfashi.com> , use it to make commit messages.

But I recommend to specify a user info:

fakegit commit -a -m "A example." --user "SuperFashi <admin@superfashi.com>"

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.

This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to <http://unlicense.org>

简介

暂无描述 展开 收起
Go
Unlicense
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/mirrors/fakegit-go.git
git@gitee.com:mirrors/fakegit-go.git
mirrors
fakegit-go
fakegit-go
master

搜索帮助