Authenticate to git with ssh
Visit a Git hosting service like GitHub, GitLab, or Bitbucket and create a new repository. Follow the instructions provided by the platform to create the repository.
Link Your Local Repository to the Remote:
git remote add origin https://github.com/your-username/your-repo-name.git git remote -v # if mistake happened git remote remove origin # add git credentials cd /.ssh # if there are no id_rsa or id_rsa.pub files, then do ssh-keygen -t rsa -b 4096 -C "your.email@gmail.com" # add id_rsa.pub file to github ssh -T git@github.com # push to remote repo git push -u origin master