Github repo change I forked from

I installed my plug on our corporate repo, but I accidentally searched from another custom plug. Although it works fine, I would like to modify it to fork it from the base repo, as it should be. I made several commits and pulled out requests, so I would prefer not to lose my job. Does anyone know a hoe to change that up the repo I fork without losing my job?

+4
source share
3 answers

Is this what you want? https://help.github.com/articles/changing-a-remote-s-url

Another obvious solution is to create a patch with your changes and apply it to the new repository.

0
source

if I get you right.

in your repo from which you forked out (what do you work for)

git remote add temp REPO-URL 

and select it

 git fetch temp 

then in your repo you have two remotes, origin and temp . if you want to combine some commit into temp info origin , you can combine temp/master into master (this will be origin/master ) or cherry pick from temp/master

0
source

If your local repo on your computer contains all the latches of your private remote fork, you should be able to remove the private remote fork, create a new fork of the correct repository up, and then simply push all local changes to the new private fork.

I would like to note, however, that if you have any pull requests / problems made to your private remote plug, then you are likely to lose comments for those who remove them. You can save any push requests that you have already combined into your private fork (and loaded into your local repo).

As for requests to receive requests to your upstream repository, as long as they are merged into an upstream repository, you do not have to worry about losing them.

0
source

Source: https://habr.com/ru/post/1482462/


All Articles