Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Chetan Hireholi SamwiseGambgee

🎯
Focusing
Block or report user

Report or block SamwiseGambgee

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@SamwiseGambgee
SamwiseGambgee / SyncGithubRepository.md
Last active Apr 24, 2018 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date. How to sync your repository with the original repository.
View SyncGithubRepository.md

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
You can’t perform that action at this time.