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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Empty commits in Souretree

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

 

Thanks!

1 answer

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

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

5,794 views 4 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you