Registry / devops / apache-airflow-providers-git

apache-airflow-providers-git

JSON →
library0.4.0pypypi✓ verified 84d ago

A provider that allows Apache Airflow to interact with Git repositories. Current version 0.3.1, supports Python >=3.10. Release cadence follows Airflow provider lifecycle.

pip install apache-airflow-providers-git
INSTALL
IMPORT
SIG · APACHE-AIRFLOW-PRO
A
apache-airflow-providers-git
devopspythonv0.4.0
Install
23.5s avg
Import
4609ms
Disk
252MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 4.760s · 252.8MB
glibc
py 3.103.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
Debug
Known issues
deprecatedThe GitProvider is considered deprecated as of Airflow 2.10. No active development; consider migrating to 'gitpython' operator or custom hook.
fix
Replace with airflow.providers.git.operators.git_clone or use GitPython directly via BashOperator.
affects: >=2.10
gotchaGitHook requires a pre-configured Airflow connection of type 'Git'. If not set, you'll get an obscure AirflowNotFoundException.
fix
Create a connection in Airflow UI with Conn Type 'Git' and provide repo URL and credentials.
affects: all
breakingRenamed from 'git_hook' to 'git.hooks.git' in provider version 0.3.0. Old imports will raise ModuleNotFoundError.
fix
Use 'from airflow.providers.git.hooks.git import GitHook'
affects: >=0.3.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'airflow.providers.git'
Provider package not installed or Airflow version incompatible.
fix
Run '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.
fix
Create 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.

Agent activity
65 hits · last 30 days
node
56
OpenAI (training)
3
Resources
apache-airflow-providers-git — pip install apache-airflow-providers-git · libregistry