Skip to content

Instantly share code, notes, and snippets.

View awmpietro's full-sized avatar

Arthur Mastropietro awmpietro

  • São Paulo/SP - Brazil
View GitHub Profile
@awmpietro
awmpietro / gist:e8f750e6429c9f6bcf9a9a95a0d4483e
Created January 30, 2018 01:02 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

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

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

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@awmpietro
awmpietro / 0_reuse_code.js
Last active August 29, 2015 14:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console