GithubHelp home page GithubHelp logo

cjcjameson / git-author Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vmware-archive/git-author

0.0 2.0 0.0 3 KB

An easy way to setup multiple authors based on `git commit --template`. It depends on git-together

License: MIT License

Shell 100.00%

git-author's Introduction

git-author

An easy way to setup multiple authors based on git commit --template. It depends on git-together

Dependency

https://github.com/kejadlen/git-together is required to run git-author.

Setup

setup.sh simply created a .git-author file as the home directory, and also configure the git to use that file as commit.template.

Usage

Follow the instruction from https://github.com/kejadlen/git-together to setup the git-together configurations. Then, git-author can use the initials from the git-together to populate the template file.

# pairing with James and Naomi
git author jh nn

# soloing
git author jh

# mobbing
git author jh nn ca

# show who are included in current ~/.git-author
git author

Then, a regular commit by git commit can automatically include all the authors with prefix Author:, e.g.

# mobbing
git author jh nn ca

# commit
git commit

# the commit message is pre-populated as:


Author: James Holden <[email protected]>
Author: Naomi Nagata <[email protected]>
Author: Chrisjen Avasarala <[email protected]>

Why

git-together is a wonderful tool to change the author and commit fields in the git commit object, and rotate the authors automaticaly to evenly distribute the credit. However, both author and commit fields can be easily updated by future merging, rebasing, cherry-picking etc.

Also, git-together cannot put multiple authors directly into same commit, e.g. it can only support one Signed-off-by: message generated by git commit --signoff.

git-author is created to extend the git-together capability, so that all the authorship information will be captured as part of the commit message, hence, it won't care about who actually tracked in the author and commit fields in the git log.

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.