Skip to content

coderosh/git_config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git_config

Get git config as a dictionary

Installation

pip install git_config

Usage

from git_config import get_config

# Global git config
config = get_config()
config["user"]["name"] # Roshan Acharya
config["user"]["email"] # acharyaroshan2357@gmail.com

# Local git config
config = get_config("local")
config['remote "origin"']["url"] # git@github.com:coderosh/git_config.git

About

Get local or global git config as a dictionary

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages