I have a repository (A) where I have been building code, I also have a same older code version in a different repo (B) what is the best way to bring the repo (A) to repo (B). Eventually repo (A) should go away. Basically I want to point towards to B.
Out of these options which one is a good practice:
Edit .git/config file URL - Instead of URL (A) use URL (B) and push all the changes
Do a pull request and bring in the changes (Not sure from repo to repo it can be done (A) is not a branch of (B).
Maybe there are are better ways than above two.