Skip to content

Instantly share code, notes, and snippets.

@mz0
Last active April 5, 2017 11:08
Show Gist options
  • Save mz0/f331a243fd3c7db114ddace9e7f22e6c to your computer and use it in GitHub Desktop.
Save mz0/f331a243fd3c7db114ddace9e7f22e6c to your computer and use it in GitHub Desktop.
Git on two legs

https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes

$ git remote
origin
$ git remote add pb https://github.com/paulboone/ticgit
$ git remote -v

Different git Push & Pull(fetch) URLs

git remote set-url --push origin git@github.com:User/forked.git

(you can't set the different pull url by itself, just a push one -- 29.05.2012 Sleepy Coders /+YuriyTymchuk )

[remote "origin"]
 fetch = +refs/heads/*:refs/remotes/origin/*
 url = git://github.com/chief/global.git
 pushurl = git@github.com:User/forked.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment