Reputation: 1558
So I have a fork, which I use as a template for various projects.
When I update the fork (master) from the upstream, I then want to update each subsequent project.
A. At the moment I follow the following steps for each new project:
B. When the fork is updated
Is there a more effective way to resolve updating each project from the updated fork?
Upvotes: 0
Views: 105
Reputation: 41011
Creating new project
Clone fork with remote named upstream
into folder with new project name
git clone -o upstream https://github.com/<user>/<fork>.git <my_new_project_name>
Add new repository url remote origin
, push, and set to track
cd <my_new_project_name>
git remote add origin https://github.com/<user>/<my_new_project_name>.git
git push -u origin master
npm install
Updating
git pull upstream master
Upvotes: 1