.. _Working with Git:

Working with Git
================


AI Assistant provides a way to automate Git routine tasks through the following blueprints:

-  Summarize remote changes ahead of current commit (chat)
      Ask the LLM to summarize the remote changes ahead of the local HEAD.
-  Code review uncommitted changes (chat)  
      Instruct the LLM to perform a code review of all **tracked** modifications.  
-  Generate commit message (chat)  
      Request the LLM to generate an adequate commit message.

Use the **Generate commit message using DVT AI Assistant** button to automatically insert a commit message.

.. |img1| image:: ../../images/common/git-commit-eclipse.png 
   :width: 100%

.. |img2| image:: ../../images/common/git-commit-vscode.png 
   :width: 100%

+-----------------------------+-----------------------------+
| |img1|                      |   |img2|                    |
|                             |                             |
| .. raw:: html               |   .. raw:: html             |
|                             |                             |
|    <p style="text-align:    |    <p style="text-align:    |
|    center; margin-top:2px;  |    center; margin-top:2px;  |
|    font-style:italic;">     |    font-style:italic;">     |
|    Eclipse                  |    VS Code                  |
|    </p>                     |    </p>                     |
+-----------------------------+-----------------------------+

.. note::

    -  To customize the dispatched prompts, run the **DVT AI: Edit Predefined Blueprint** command and select the desired option.
