Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,597
Community Members
 
Community Events
168
Community Groups

Empty commits in Souretree

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

 

Thanks!

1 answer

0 votes

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”

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

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
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

78,941 views 134 29
Read article

Atlassian Community Events