Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 382
Max Bündchen Avatar asked Jun 23 '16 13:06

Max Bündchen


1 Answers

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-rebase when clicking on pull. Visual Studio should just do a git pull, 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.

like image 98
g19fanatic Avatar answered Oct 12 '22 12:10

g19fanatic