Coder Social home page Coder Social logo

git-upstage's Introduction

git-upstage: Squash a branch and claim (early) credit for it

git-upstage squashes the current branch (where it diverges from master) to a single commit on a new branch, under your name, and dated five minutes before the last commit.

Example:

Let's say that Mike Diligent has made three difficult commits on a new branch off of master, called frontend-refactor.

d5bef31 Mike Diligent     Thu Feb 26 22:28:50 2015 -0800  Third dose of work.
af66c53 Mike Diligent     Thu Feb 26 20:23:29 2015 -0800  Even more work.
b144683 Mike Diligent     Thu Feb 26 19:13:10 2015 -0800  Lots of work.

git-upstage would then create a new branch, quick-frontend-refactor, containing one commit, dated five minutes before d5bef31, with a smarmy commit message as follows:

7e1ee98 Dishonest John     Thu Feb 26 22:23:50 2015 -0800  Just a quick fix for the whole frontend-refactor issue.

Options

-b, --branch BRANCHNAME

The branch that you wish to squash. Default: current branch.

-n, --newbranch NEWBRANCHNAME

The name of the new branch created by this. Default: quick-CB, where CB is the name of the branch you're on at the time the command is run.

-h, --honest

Don't backdate commit. (Still claims credit for it though.)

Installation

Copy git-upstage to any folder on your $PATH and make sure it's executable.

Usage

It can be invoked as git upstage like a git utility.

git-upstage's People

Contributors

hoeggi avatar silasx avatar silasxhiqlabs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

git-upstage's Issues

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.