Simple way to initialize a new git repository in an empty directory, add a file and do a first commit (or skip that part in a directory with files). Useful for unit tests and generators.
MIT License
Extract the username from a git remote origin URL.
Resolve the path to the user's global .gitconfig.
Get the repository name from the git remote origin URL
Extract the git remote origin URL from your local git repository.
Regex to validate that a URL is a git URL.
API for adding git remotes.
Parse `.git/config` into a JavaScript object. sync or async.
Get the current branch for a local git repository
Get the name of the current user from git config, at the project or global scope, depending on wh...