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;
}
Written by Scott Robertson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#