0

I added a tag too early and now want to remove it.

I have removed the local tag.

Now trying to do the remote:

$ git push origin :refs/tags/v17.1.8

Fails:

ajtru@DESKTOP-4OHL3UQ MINGW64 /d/My Programs/2017/MeetSchedAssist (master)
$ git push origin :refs/tags/v17.1.8
Warning: Permanently added the RSA host key for IP address '104.192.143.1' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164

1 Answers1

0

You have to set up your ssh keys to access the repository.

Check to see if you have ssh keys

# open git-bash and type this:
cat ~/.ssh/id_sra.pub

If nothing is printed so you don't have any keys.

Set yous ssh keys

# open git-bash and type this:
ssh-keygen

follow the instruction on the screen and create your keys and once its there copy them and set them under your profile of your git serevr

# in git-bash
cat ~/.ssh/id_rsa.pub

# copy the key with the ssh-... until the end and set it under your git server

Once you set up your keys test the connection using the fetch command

# test that you can access the repository
# if there is no error message than all is fine
git fetch --all -prune
CodeWizard
  • 128,036
  • 21
  • 144
  • 167
  • I have those keys already. What I needed to do was add the path to the tortoisegitplink software to my computer environment variables. Then it worked. I indicated that question in my comment to my question. – Andrew Truckle Jun 24 '17 at 15:27