Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

fatal: cannot do a partial commit during a merge. Completed with errors, see above

eric franchomme May 1, 2014

With the new version of SourceTree (1.9.0), I am getting commit errors that I was not seeing before.

The main one is trying to Commit changes brought to a branch from a Merge. the local repo contains other changed files that I do not want to associate with the commit (basically, I only want to commit the files that were changed from the merge, and leave the other files out of the commit). It used to be possible prior to 1.9.0. 1.9.0 broke that option.

any workaround?

1 answer

0 votes
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 1, 2014

Try stashing/shelving the changes in your local repo prior to the merge.

eric franchomme May 1, 2014

that's inconvenient as it adds more steps to the process, and error prone, as it's easy to forget to stash; and also, once I stash, I can not test the results of the merge: the files that were already in the local repo are for Settings/Testing purposes.

Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 1, 2014

It is generally advisable to keep settings files out of the repository (they can be in the working directory, but ignored). If you have them in the repo for documentation purposes, I recommend putting them in with an extra piece in the filename.

For example, if your settings are in 'settings.ini', rename the settings.ini in the repo to settings.default.ini, then make it part of standard deployment steps to copy that file to 'settings.ini', then modify it. If this occurs in a repository working copy, the 'settings.ini' file can be safely ignored.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events