ZeroSuf3r ZeroSuf3r - 1 year ago 121
Git Question

github, update forked project

let's say repository from witch I clone (and only read-only for me) is: branch: dev

I forked project and url:

(which I have full access: read+write)

But someone updated
from another forked version.

Let's say file changed on (test.txt)

But my forked project have
file with content:


So how do I update forked project locally and in my repository ?

Which commands to use, and please make example with my showed repositories...

Answer Source

You should add to your local repo (which is a clone of your Dde.git fork) the remote address for the original repo 'upstream'.

git remote add upstream git:// # public read-only URL

That will allow you to pull 'upstream' into your own branch (merging and resolving any merge conflict in test.txt).
Then you will push your local branch to your Dde GitHub repo.

See GitHub help page: "Working with remotes" for more details.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download