I want to create a program which will run locally on a developer's computer, and will display a window with a visual representation of their git commits in real time.

How can I do this?
Here's one way to create a program to display a visual representation of Git commits in real-time:

Choose a programming language: You can use any language that supports GUI creation, such as Python, C++, Java, or C#.

Choose a GUI library: You'll need a GUI library to create the window and display the visual representation of the commits. Some popular GUI libraries for different programming languages include:

Python: Tkinter, PyQt, wxPython
C++: Qt, wxWidgets, FLTK
Java: JavaFX, Swing
C#: WPF, Windows Forms
Connect to the Git repository: You'll need to use a Git library or API to connect to the Git repository and retrieve information about the commits. You can use the Git command line interface or a library such as Libgit2 (for C and C++) or JGit (for Java).

Display the visual representation: Once you have retrieved information about the commits, you can use the GUI library to display a visual representation of the commits. This could be a timeline, a graph, or any other type of visualization you choose.

Real-time updates: To make the visualization update in real-time, you can set up a periodic refresh of the data or use a Git hook to trigger an update each time a new commit is made.

This high-level overview of how you might create a real-time program to display a visual representation of Git commits. The exact implementation details will depend on your chosen programming language and GUI library.
I want to use python with Tkinter. Can you give me a small piece of code to get started with? I'm also not familiar with any git libraries, could you suggest one for me?