Skip to content

Instantly share code, notes, and snippets.

Available for Remote Work

Henna Singh hennasingh

Available for Remote Work
Block or report user

Report or block hennasingh

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
hennasingh / syncYourFork
Created Dec 6, 2018 — forked from OyaCanli/
How to sync your fork when collaborating on github
View syncYourFork
When you want to collaborate on a project for the first time, you fork the project and then clone your fork to your PC.
When you clone a repo from github, it automatically adds that address as a remote address for your local project
and when you later call git push, it pushes your changes to that remote (which is your fork on github, and which is by convention
named as origin). If you call *git remote -v* at this stage on git bash/command you'll see the address of your own fork as remote origin(both for pulling and pushing)
However, when there is a change in the original repo that you forked, the changes won't be reflected in your local
copy, neither in your fork on github. It doesn't help to call git pull or press update on AS, because the default destination for
updating is your fork on github, which is not updated either.
So, you need to fetch directly from the original repo that you forked. For this, you need to add it as a second remote address.
You can’t perform that action at this time.