Skip to content

Instantly share code, notes, and snippets.

View chetan-hireholi's full-sized avatar
🐳

Chetan Hireholi chetan-hireholi

🐳
  • IBM
  • Toronto, Canada
  • 06:28 (UTC -04:00)
View GitHub Profile
@chetan-hireholi
chetan-hireholi / SyncGithubRepository.md
Last active April 24, 2018 03:57 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date. How to sync your repository with the original repository.

1. Clone your fork: (Though I feel this step is not necessary)

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 https://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream