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

Empty commits in Souretree

Noam Levy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 29, 2020

Hi, are empty commits supported in Sourcetree? If not, why not?

 

Thanks!

1 answer

0 votes
Soumyadeep Mandal
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.
January 2, 2021

Hi @Noam Levy ,

Welcome to the community! We are glad you are here.

Wish you a very happy new year!

Well, I think it can be done!

GIT commit has a special command switch for this purpose:

–allow-empty

This switch performs a simple commit with no file changes but with a complete GIT object as a regular commit.

For example, the following command:

git commit –allow-empty -m “Empty test commit”

Tech2778
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 2, 2021

Thanks Soumyadeep.

We know how to use the --allow-empty command terminal, question is how to use it from within sourcetree?

Like Soumyadeep Mandal likes this
Soumyadeep Mandal
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.
January 2, 2021

Hi @Tech2778 ,

I'm not sure if it can be done using GUI, But I hope this feature will be available in the future! Making a function available in GUI is tougher, so it might take some time but I hope it will be available in future updates!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events