Coder Social home page Coder Social logo

gitstashtohotfix's Introduction

Gitflowsync

Installation:

  1. Install gitflowsync from dszakal's github account

  2. Go to the folder in your terminal where you checked out the repo, there type

    sudo cp gitstashtohotfix /usr/local/bin/gitstashtohotfix
    sudo chmod o+x /usr/local/bin/gitstashtohotfix

Updating to latest version:

Are you up to date?

diff ./gitstashtohotfix /usr/local/bin/gitstashtohotfix && echo 'up to date' || echo 'not up to date'

If not, repeat the steps stated in installation. You need to do it manually after "git pull".

Usage:

You need to be on master branch, and you should not have any untracked files for safety reasons. Whatever the stash contains will become part of a new hotfix branch

$ gitstashtohotfix hotfix_tagname 'my commit message'

For example if the previous version was 3.1.214 and your next release is a small bugfix release, you want to create a hotfix branch of 3.1.215

$ gitstashtohotfix 3.1.215 'template grey line in div fixed'

This automatically starts a hotfix, commits the stashed changes and finishes the hotfix, clears the stash, pushes the merged develop and master branches and tags.

The script will stop with exit code 1, whereever any git, git-flow or any other command fails, and will tell you which step failed and which steps did not run, you may want to intervent manually in these cases with extra care.

gitstashtohotfix's People

Stargazers

Sandor Toth avatar

Watchers

James Cloos avatar Sandor Toth avatar Daniel Szakal 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.