def get_aliases():
    cmd = "git config --global --get-regexp url\..*github.com.*"
    stdout, stderr = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE,
        stderr=PIPE).communicate()
    if stdout:
        d = {}
        for alias in stdout.strip().split('\n'):
            url, alias = alias.split()
            d[alias] = url.split('.', 1)[1].rsplit('.', 1)[0]
        return d
    return []
Return a dict of global git aliases regarding github, or None:
dataset/ETHPy150Open jsmits/github-cli/src/github/utils.py/get_aliases