Re:GitHub is down
by aidos on Monday July 22, 2019 @12:29PM
(#20499599)
Wait, what?! You can have 2 different urls for the same remote so a single push will push to both?
[ Parent
| on HN ]
Yes, exactly. Here's an example for a repository hosted on my server and in Keybase Git. Pulls / Fetches will use the repository on my server. Pushes go to both.
[timwolla@/s/xxx (master)]g remote show origin
* remote origin
Fetch URL: [email protected]:xxx.git
Push URL: [email protected]:xxx.git
Push URL: keybase://private/timwolla/xxx
HEAD branch: master
Remote branch:
master tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (up to date)Neat! I was also unaware of this.