git - How to push into a repository different from the repository I'm pulling from -
I have cloned a public Github repo and have started modifying some files locally.
Now I want to take these changes to a personal repository, but still I am able to drag and merge changes in the public repo.
How can I set up a GT for doing this?
I know that I can build a public project and stop the work of the forum, but I am not going to merge my changes in public repo, so I do not think it is correct The solution is
I will change the remote origin to a private repo:
Git Remote Delete Original GIT Remote Original git @ server: user / repo.git Now you can push
in private repo using git push generation BRANCH_NAME To make a bridge (and merge) with a public repository, I will make another remote, call it upstream :
add git remote upstream git @ server: public / repo.git Now you Get the gist upstream Master
and maybe add it to your local branch:
GIT merge upstream / BRANCH_NAME
Comments
Post a Comment