Pushing Gist changes back up to Github
Last updated • 19 March 2019
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; git@gist.github.com: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} git@gist.github.com:xxxxxxxxxx.git
THEN you should be able to push your Gist.