git-refactor
- Create refactor branch
git-refactor
[-r|--remote [remote_name]] [finish] <name>
Create the given refactor branch
<-r|--remote [remote_name]>
Setup a remote tracking branch using remote_name
. If remote_name
is not supplied, use origin
by default.
<finish>
Merge and delete the refactor branch.
<name>
The name of the refactor branch.
$ git refactor mainlib_refactor
...
$ git commit -m "Some changes"
...
$ git checkout master
$ git refactor finish mainlib_refactor
$ $ git refactor -r upstream mainlib_refactor
Written by Jesús Espino <jespinog@gmail.com>
Modified by Mark Pitman <mark.pitman@gmail.com>
<https://github.com/tj/git-extras/issues>
<https://github.com/tj/git-extras>