I cloned someone else's repo to my computer from github to try it out. I eventually made some changes to it (locally) that I do not want to commit to the original repo. Instead, I want to create my own fork of the project, apply the changes I made, then push it to my own repo. How do I do this?
You can add your own repo as a remote and simply push there :
git remote add myFork git://myforkUrl/project.git
git push myFork master
But if you want to work with github you should consider to fork from the github interface.
Resources :
You need to change what origin points to:
git remote rm origin
git remote add origin git://newAddress/repo.git
git push origin master
Assuming you already have a bare repository already setup on git://newAddress/repo.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With