I would like to create a custom command for Git that is going to make rebasing on develop before I get ready for a pull request easier. Right now the current workflow is;
- checkout develop
- fetch
- pull
- checkout my current branch
- rebase -i
- commit
- push
I would love the be able to run everything up to and including the rebase command with just a simple custom command. I was reading this article about custom commands which seems like it could do exactly what I want with one small exception. I would like to be able to store the current branch name and then after checking out develop and fetching/pulling then switch back to the original branch before the rebase.