I created the fork of some GitHub project. Then I created a new branch and made a patch inside this branch. I sent a download request to the author, and he applied my patch and added some commits later. How can I sync my fork on GitHub with the original project? Can I remove my fork on GitHub and create a new fork for each of my patches every time?
You do not need refork again. Just add the remote (say, upstream ) and fetch upstream to update the cloned repository.
refork
upstream
fetch upstream
$ git remote add upstream <original-repo-url> $ git fetch upstream # update local with upstream $ git diff HEAD..upstream/master # see diffs between local and upstream/master (if there is no diff then both are in sync) $ git pull upstream master # pull upstream master into local branch $ git push origin HEAD # push to your forked repo remote branch
Source: https://habr.com/ru/post/1262512/More articles:Using a MySQL shared container - dockerShortcut for selecting a line of code in Android Studio - android-studioCopying a directory to a docker image while skipping specified subdirectories - dockerSearching for city names from PlaceAutoComplete gives encrypted city names - androidDapper Asynchronous Multiplexing Extension - c #Why does AVPlayer download first and not stream? - swiftCocos2d js text alignment in Chrome and Firefox - javascriptHow to show form error message in ionic 2 - validationChecking AsyncTask status with another action - androidHow to skip an index in a for loop in Swift - iterationAll Articles