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

Source Tree Version Number

kishore KA August 3, 2017

While comminting the File in the Source tree. we need to save with the version number.

For Example : I am edting one file mutliple times that should save with the version numbers.

1 answer

0 votes
minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 4, 2017

Hi

Git doesn't really do version numbers, relying internally on the commit hash.

https://gitversion.readthedocs.io/en/latest/You could try one fo the following.

Theprepare-commit-msg  and  commit-msg client side hooks, allows you to inspect, and potentially alter the commit msg before or aafter its been written respectively

 

Alternatively something like GitVersion may be what you are looking for
https://gitversion.readthedocs.io/en/latest/

SourceTree doesn't explicitly support either approach, but equally should work with them if you set them up externally.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events