Used to fix an urgent problem on production
$ git init
# create files etc.
$ git add .
$ git commit -m "Initial commit"
# do something
$ git add .
$ git commit -m "Something changed"
# fix some typo in README
$ git add README
$ git commit -m "Fixed typo"
$ git checkout -b develop
$ git commit -m "Implementation of XY"
$ git checkout master
$ git merge develop
$ git checkout develop
$ git merge feature-X
$ git branch -d feature-X
$ git merge develop
$ git checkout develop
$ git merge feature-X
$ git checkout feature-X
$ git rebase develop
$ git checkout develop
$ git merge feature-X # fast-forward!
$ git checkout develop
$ git merge --no-ff feature-X
$ git branch -d feature-X
?