Fix: "add cherry picked from" is not applied when squashing/editing the commits

(Fix issue #2219)

Signed-off-by: Yue Lin Ho <b8732003@student.nsysu.edu.tw>