This question touches on how to perform a merge with pygit2
, but, to the best of my understanding, that will result in a new commit. Is there a way to perform a rebase, which will not result in a new commit and will simply fast-forward the branch reference to correspond to the latest from a given remote?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
You can fast-forward with Reference.set_target().
Example (fast-forwarding
master
toorigin/master
, assuming that the script starts from checked outmaster
branch in clean state):