Pushing Gist changes back up to Github

So this has kind of caught me a few times and thought I might stick it here as a future note to self.

When attempting to push to a Gist using SSH authentication, the remote host needs to be in the format that support SSH.

e.g; [email protected]:xxxxxxxxx.git

Command to check:

git remote v

If the remote host is a different format:

git remote remove {remote_name}
git remote add {remote_name} [email protected]:xxxxxxxxxx.git

THEN you should be able to push your Gist.

One last thing…

If you liked this article, I'd be incredibly grateful if you tweeted about it.

Also, I don't send emails often but when I do, I try to fill them full of useful goodies. If you like code snippets & dev tips, join my mailing list. There's no catch but I'll probably want to tell you about any new plugins & tools I build.