Git - for a plug or not for a plug

New to Git and still a bit puzzled. I forked the project on github and would like to make / combine some recent changes made by the project owner on the original with my fork. Is it possible? The project is read-only, but basically, I would like to get to the point where I can edit and add code, and then also make any changes from the original / wizard.

Maybe I don’t need to make a plug, and I just need to clone the wizard to a local hard drive. Any help is greatly appreciated

+4
source share
2 answers

Yes, you can add the source repository as remote to the local repository

$ git remote add upstream http://..... 

and then you can

 $ git fetch upstream $ git merge upstream/any-changes 

to get this data into your local branches (which you can then go back to your github fork)

+6
source

You can also consider git rebase . This undoes all your commits, quickly redirects you to the last commit in the upstream repository, and then applies your commits one by one.

+4
source

All Articles