Solution
git checkout master
git merge C
With C being the SHA1 of commit C.
Result
D (dev)
/
master A - B - C (move master HEAD)
It should be a fast-forward merge.
git checkout master
git merge C
With C being the SHA1 of commit C.
D (dev)
/
master A - B - C (move master HEAD)
It should be a fast-forward merge.