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

Can I pass the git merge option ignore-all-space when merging in SourceTree

D K July 2, 2013

Git can ignore all space on merge. Is it possible to pass this option with SourceTree

git merge -Xignore-all-space

2 answers

0 votes
Benjamin_Po February 8, 2018

I created custom action that included ignore all white space shell script
https://github.com/benjaminpo/sourcetree-custom-action

0 votes
stevestreeting
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.
July 2, 2013

You can't pass this to an individual merge call, but you can make it your default by setting this option in your local repositories .git/config:

branch.<name>.mergeoptions=ignore-all-space

As you can see you have to set it per-branch.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events