In our team we are using a development, staging and a master branch plus branches for issues. With this workflow I find myself doing a lot of the following:
For example in the development branch:
git checkout staging; git merge development
Does anyone have a simple alias for this?
It should be something like:
merge_with master
would do:
git checkout master; git merge previous_branch
Here is sort of what I mean except it does not work yet.
First it finds out what the current branch is. Then it uses that to determine which branch to merge with.
So the next thing is to find out how to append an alias argument…