Use rebase when Sync in Visual Studio 2015
I’m using Visual Studio 2015 and Git. When I need to push my commits I use fetch and rebase to merge the new commits before push. This is my company default policy to mantain the history clear without the join merges.
Is possible to configure the Sync feature of Visual Studio 2015 Team Explorer to use rebase when pull? In the Git config is possible set the pull to use rebase instead merge by default, but Visual Studio Sync seems to use another configuration.
One Solution collect form web for “Use rebase when Sync in Visual Studio 2015”
As of right now, it looks like this feature isn’t supported by Visual Studio.
You can see the references here and here.
… For now Visual Studio does a
git pull --no-rebasewhen clicking on
Visual Studio should just do a
therefore allowing the user to choose the behavior through the console…
As seen in the above quote, VS is explicitly stating that a sync is run with the
--no-rebase option. The suggested comments on those pages that it should use the global configuration settings is incorrect because of this explicit option being present.
You are limited to manually doing rebases at the moment.