When I choose "update from master", it creates a merge commit. I'd rather just have it re-base. Is this possible?
It does not appear that feature is currently included in GitHub desktop. What I normally do is click on the repository name in the drop-down menu in the top left and then click on "open in terminal". Then just follow the instructions here.
Update:
If you add this to your .gitconfig
, GitHub desktop should rebase according to here.
[pull]
rebase = true
Second Update:
GitHub desktop 2.0 now supports rebasing built in! It is under the branch section of the top menu or you can use the shortcut ⇧⌘E
Using
rebase
instead of merging branches results in an easier to follow but less exact history of commits. Your team should agree under what circumstances you shouldrebase
a branch. You should still always merge branches into the main branch through a pull request.A suggested approach is to allow rebasing local changes that you have made but haven't shared with others, but to merge once you are sharing changes with others. This avoids trouble with rewriting history while still letting you easily catch up with changes as you develop your code locally.
Ref & Source:
No. There was a feature request on their GitHub issue tracker for exactly this option a year ago, for which the response was
This idea is interesting for the future, but this is beyond the scope of our current roadmap.
Since then, another feature request, which is still open, has also been posted.
来源:https://stackoverflow.com/questions/37492908/is-there-a-way-to-make-github-desktop-rebase-a-branch-against-master