git push --follow-tags
- Generate an SSH key
Open terminal to create ssh keys:
cd ~ #Your home directory
ssh-keygen -t rsa #Press enter for all values
- Associate the SSH key with the remote repository
In GitHub, go to settings and click 'add SSH key'. Copy the contents of your ~/.ssh/id_rsa.pub into the field labeled 'Key'.
- Set your remote URL to a form that supports SSH
make sure your repo URL is in the form : git+ssh://[email protected]/username/reponame.git
To see your repo URL, run: git remote show origin
You can change the URL with: git remote set-url origin git+ssh://[email protected]/username/reponame.git