:github_url: https://github.com/kivymd/KivyMD/blob/master/kivymd/tools/release/git_commands.py

kivymd.tools.release.git_commands
=================================

.. py:module:: kivymd.tools.release.git_commands


API - :mod:`kivymd.tools.release.git_commands`
----------------------------------------------

.. py:function:: command(cmd: list, capture_output: bool = False) -> str

   Run system command.


.. py:function:: get_previous_version() -> str

   Returns latest tag in git.


.. py:function:: git_clean(ask: bool = True)

   Clean git repository from untracked and changed files.


.. py:function:: git_commit(message: str, allow_error: bool = False, add_files: list = None)

   Make commit.


.. py:function:: git_tag(name: str)

   Create tag.


.. py:function:: git_push(branches_to_push: list, ask: bool = True, push: bool = False)

   Push all changes.



