🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs bundle
✨ .d.ts bundle + type-checking
🧐 Source maps
| # | |
| # Working with branches | |
| # | |
| # Get the current branch name (not so useful in itself, but used in | |
| # other aliases) | |
| branch-name = "!git rev-parse --abbrev-ref HEAD" | |
| # Push the current branch to the remote "origin", and set it to track | |
| # the upstream branch | |
| publish = "!git push -u origin $(git branch-name)" |
| import { Injectable, EventEmitter } from '@angular/core'; | |
| import { HttpInterceptor, HttpRequest, HttpHandler, HttpSentEvent, HttpHeaderResponse, HttpProgressEvent, HttpResponse, HttpUserEvent, HttpClient } from '@angular/common/http'; | |
| import { Observable, Observer, Subscription, throwError, timer } from 'rxjs'; | |
| import { retryWhen, mergeMap, finalize } from 'rxjs/operators'; | |
| @Injectable() | |
| export class NetworkQueueInterceptor implements HttpInterceptor { | |
| onChanges = new EventEmitter<boolean>(); | |
| private lastValue = this.isOnline(); |
You should not use the Open SSH client that comes with Git for Windows. Instead, Windows 10 has its own implementation of Open SSH that is integrated with the system. To achieve this:
-
Start the
ssh-agentfrom Windows Services: a. TypeServicesin theStart MenuorWin+Rand then typeservices.mscto launch the Services window; b. Find theOpenSSH Authentication Agentin the list and double click on it; c. In theOpenSSH Authentication Agent Propertieswindow that appears, chooseAutomaticfrom theStartup type:dropdown and clickStartfromService status:. Make sure it now saysService status: Running. -
Configure Git to use the Windows 10 implementation of OpenSSH by issuing the following command in Powershell:
git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe; -
Configure SSH to automatically add the keys to the agent on startup by editing the
configfile found atC:\Users\%YOUR_USERNAME%\.ssh\config, and add the following lines: