TIL: Renaming branch in Git, VSCode sync settings, Frontend Handbook 2017
Today I learned:
- Git: Renaming current branch
$ git branch -m NEW_NAME
- VSCode: Setting Sync extension for VSCode is really handy as I regularly switch between laptop and desktop at work. This extension keep settings for VSCode on Gist and sync across all my computers.
- PhantomJS doesn’t support
IntlAPI and so it causes some errors running unit tests with Karma on the project I’m working on. To solve the issue, install
intlmodule and put in
polyfills.ts(for an Angular 2 project) to fix the errors.
$ yarn add intl
The second line is required also as
Intl doesn’t ship with a default locale.