使用 Rugged,执行快进“合并”的规范方法是什么?
从这里我发现了一个可能的线索:
# Move branch forward
# Since there's no fast-forward merge in this lib yet, do it by hand.
br = repo.branch "master"
br.move 'master-old', true if br != nil
repo.create_branch 'master', commit_sha
#br.delete! # No real harm in this hanging around
但我很好奇这里是否有改进的余地。