This repository contains useful commands for the daily workflow.
For simple Git commands, have a look here: https://rogerdudler.github.io/git-guide/
| Task | Command | Description |
|---|---|---|
| Revert local changes | git checkout . git clean -fd |
checkout reverts all local changes to remote files.clean -fd removes untracked files and directories.See https://stackoverflow.com/a/1146981/7456806 |
- Install Git for Windows: https://git-scm.com/downloads
- Run
git config --global user.name "<Vorname> <Nachname>" - Run
git config --global user.email "<Email>" - Run
ssh-keygen -t rsaand press return 4 times - Read public key using
cat ~/.ssh/id_rsa.pub - Copy public key and paste it as a new SSH key: https://github.com/settings/keys
node-version-manager for windows. https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows
Install Guide: https://docs.microsoft.com/de-de/windows/nodejs/setup-on-windows
Includes npm.
Tipps und Helfer für npm-Scripts: https://labs.micromata.de/best-practices/tipps-und-helfer-fuer-npm-run-scripts-teil-1/
Run PowerShell as Administrator and execute the following:
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install -g npm-windows-upgrade
npm-windows-upgradeSee https://stackoverflow.com/a/31520672/7456806
npm uninstall -g angular-cli @angular/cli
npm cache verify
npm install -g @angular/cli
ng serve --port 4200
Runs a live development server of an angular application on the default port 4200. See https://angular.io/cli/serve
ng new <app-name>
Creates a directory with a default angular application. See https://angular.io/cli/new
ng g component <component-name>
Creates a component in a equally named folder under src/app path. See https://angular.io/cli/generate#component