This project is a single file Flask web application for browsing Git repositories. It showcases the integration of Flask with GitPython, allowing users to navigate through a repository's files and commit history.
-
File List: The application presents a clean and organized list of files within the repository, allowing users to easily browse and access each file.
-
Commit History: Gain insights into the commit history of the repository with an interactive display of commit details, including the commit message, author, and timestamp.
-
File Content: Clicking on a file in the file list reveals the file's content, enabling users to conveniently view the text within the web application itself.
-
Customizable Styling: The web interface is styled using CSS to ensure a visually appealing experience. It employs a bold monospace font to enhance readability and provide a professional look and feel.
To get started with the Git Repository Viewer, follow these simple steps:
-
Install the necessary dependencies by running
pip install -r requirements.txt
. -
Execute the Flask application by running
python viewer.py <repository_path>
, where<repository_path>
is the path to your desired Git repository. -
Open a web browser and access the application at
http://localhost:5000
. You will be presented with an intuitive interface showcasing the files and commit history of the repository. -
Explore the files, view commit details, and even inspect the content of individual files by clicking on the appropriate links.
If you have any ideas, suggestions, or bug fixes, please feel free to submit a pull request.
This project is licensed under the MIT License. Feel free to use, modify, and distribute it as per the terms of the license.