Easily change the remote upstream from a cloned repo

Easily change the remote upstream from a cloned repo

Situation

So, I was about to create the is-java-keyword package.

Common things, new project, etc., but thank God, I could already use my npm-boilerplate to create the skeleton and stuff.

So, I clone the project and started making the required code changes.
Once done, I had to commit, so git status was the command, but it also returned the following lines, which made my a bit skeptical, in terms of what I was doing:

“Oh, wait a sec., of course it’s gonna be pushing to the repo I cloned from”. On the other hand, I was too lazy to search for the command of amending the remote git repository of my local repo.
“Hold on, it shouldn’t be that difficult to do it manually. Check into ./git directory”:

Solved!

Closing Quote

Only by experimenting you get to know life better.

Advertisements