You have a local repository. Let's say you cloned this repo from a remote source, but now you forked it somewhere else and you want to push a commit or two to the forked one. How can you do that?

First of all, verify your remotes:

git remote -v

You should see something like this:

origin (fetch)
origin (push)

origin is the shortcut-name that we give to the URL on the right side, so it's the default remote repository. How can we change it? Really simple:

git remote set-url origin <new-remote-url>

If the URL of the forked repo is this one ``, you should pass it to the command like this:

git remote set-url origin

Very good! Now, you could launch `git remote -v` again and see the changes:

origin (fetch)
origin (push)

Well done, now you can push every change you want on your own fork without messing with the code of anybody else.