Git Visual Studio 2015 Auto-commit on successful build

I would like to automate my commits on Visual studio. However, I do not want to commit every time the files change. I only want to make successful builds. Therefore, my code is always "built".

The main reason, as a rule, I forget to commit between big changes, and I always finish before and after adding functions.

+5
source share
1 answer

I believe that setting the following events in PostBuild in a project might work:

git commit -am "Succesful build at $(date -u +'%Y.%m.%d %H:%M:%S')" 
+1
source

Source: https://habr.com/ru/post/1235815/


All Articles