Example #1
0
def init_remotes():
    path = getcwd()
    git = Git(path)

    has_upstream = raw_input('Is this a fork? (y/N) ')
    if has_upstream.lower() == 'y':
        upstream = raw_input('What is the url of the upstream project? ')
        git.remote('add', 'upstream', upstream)