Git fetch from one repo and push to another

I clone some public repositories on my computer and then make changes to it but those changes are important for me so I want to version control them as well.

The idea is to one repository to pull from and another repository to push to, you can do that by adding a separate push repo url.

  1. git remote set-url --push origin https://USERNAME@bitbucket.org/ USERNAME/REPO.git

I hope it helps.

Similar posts

Ravi Sagar Newsletter

Want to contact me?