Git Interface
Contents
Git Interface#
This page explains the Git Helpers shipped by theDjango CLI Package.
👉 New toApp-Generator? Sign IN withGitHub orGenerate Web Apps in no time (free service).
Import CLI Package#
Download a starter that supports the Django CLI package:Datta Able (Free) orDynamic Django (Paid) viaOnboarding Kit Bundle.Once the project is downloaded, unzip it and inspect the files.
unzipdjango-datta-able.zipcddjango-datta-ablepipinstall-rrequirements.txt
The CLI helpers are located in thecli package, root of the codebase:
<PROJECT_ROOT>||--cli/# CLI Package|--__init__.py# The entry point|--common.py# Constants|--h_ai_claude.py# Claude.AI Interface|--h_code_parser.py# AST-based helpers|--h_django_common.py# Manage Project dependencies|--h_django_deps.py# Manage Project dependencies|--h_django_env.py# Manage ENV|--h_django_settings.py# Manage Settings|--h_django_urls.py# Manage Routing|--h_django.py# DJANGO specific helpers|--h_files.py# Filesystem Helpers|--h_git.py# GIT Interface|--h_shell.py# Shell Interface|--h_util.py# Misc Helpers
After installing the dependencies, we can start the Python shell and import the CLI package in theDjango orPython Shell.
# Usage via Django Shellpythonmanage.pyshell>>>fromcliimport*# OR using the Python Shellpython# Start Python Shell>>>fromcliimport*# Import CLI Helpers>>>h_random()# Test the import by calling a helper>>>'Py8v76'
At this point, we can start using the CLI helpers.
Print Changes#
>>>fromcliimport*>>>git_changes()
Print Git LOG#
>>>fromcliimport*>>>git_log()
Commit Changes#
>>>fromcliimport*>>>git_commit()
Tag Changes#
>>>fromcliimport*>>>git_tag()
Lits Git Tags#
>>>fromcliimport*>>>git_list_tags()
Revert Commit#
>>>fromcliimport*>>>git_revert()
Links#
👉 New toApp-Generator? Join our 10k+ Community using GitHubOne-Click SignIN.
👉 Downloadproducts and start fast a new project
👉 Bootstrap your startUp, MVP or Legacy project with acustom development sprint