Last Updated: February 25, 2016
·
468
· scottymeuk

Git Features

May or may not be useful for people, but they speed things up a lot for me.

function feature {
    git checkout -b feature/$1
}

function features {
    git branch --list | grep feature/
}

function feature-sync {
    git checkout feature/$1 &&
    git pull origin feature/$1 &&
    git push origin feature/$1;
}

function feature-merge {
    git checkout feature/$1 &&
    git pull origin feature/$1 &&
    git checkout master &&
    git pull origin master &&
    git merge feature/$1 &&
    git branch -d feature/$1;
}