Registry /
devops / apache-airflow-providers-git
Install & Compatibility
Where this runs
tested against v0.4.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 4.760s · 252.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 23.5s · import 4.458s · 250MB
252MB installed
● package 252MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
GitHook
✓ from airflow.providers.git.hooks.git import GitHook
✗ from airflow.hooks.git_hook import GitHook
Old import path deprecated in Airflow 2.0
Minimal example: create a Git connection in Airflow UI, then use GitHook to clone a repo.
from airflow import DAG
from airflow.operators.python import PythonOperator
from airflow.providers.git.hooks.git import GitHook
from datetime import datetime
with DAG('git_example', start_date=datetime(2024,1,1), schedule=None, catchup=False) as dag:
def clone_repo():
hook = GitHook(git_conn_id='my_git_conn')
repo_dir = hook.clone_repository()
print(f'Cloned to {repo_dir}')
PythonOperator(task_id='clone', python_callable=clone_repo)
airflow --version
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'airflow.providers.git'
Provider package not installed or Airflow version incompatible.
fixRun 'pip install apache-airflow-providers-git' and ensure Airflow >=2.1.
AirflowNotFoundException: The conn_id `git_default` isn't defined
Missing Airflow connection for Git.
fixCreate a Git connection in Airflow UI with Conn Id 'git_default'. Or pass a valid git_conn_id to GitHook.
Upgrade
Version history
0.4.0latest on PyPI · released May 23, 2026
Audit
Dependencies
No dependency data recorded yet.