Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Sampath Kumar Krishnan sampathBlam

🏠
Working from home
  • Trimble Inc.
  • Chennai, India
View GitHub Profile
@sampathBlam
sampathBlam / install-node-ubuntu.md
Created Apr 24, 2020
Installing NodeJS in Ubuntu
View install-node-ubuntu.md

Install nvm

nvm - Node version manager is probably the most effective means to install and manage Node.js installations in linux environment. It provides ways to have multiple node versions installed in a machine and abilities to switch between versions. Install a particular version of nvm using either curl or wget. Just change the version number to get the specific version of nvm.

Using curl

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
@sampathBlam
sampathBlam / upstream-sync.md
Last active May 9, 2020 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date
View upstream-sync.md

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

By default, the remote origin would be set to git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git Now add a new remote to point to the original repository from which you forked.

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo