DEV Community

Discussion on: 5 Great Git CLI Shortcuts

Collapse
 
v_schroeder profile image
Vincent Schröder

Just created this little handy alias for interactive rebase

alias gitrebase='git checkout master && git pull && git checkout - && git rebase -i HEAD~$(git rev-list --count HEAD ^master)'