Skip to content

Using GitHub from SSH login

Qiang Zhu edited this page Jul 23, 2019 · 1 revision

When you attempt to push/pull your repo through ssh connection, you need to manually type the user account/password. This can be avoided by setting ssh connection as follows

  • generate the ssh keys by following this link in your local directory,

  • type git remote -v, you will see the following,

origin  https://github.com/qzhu2017/FF-project.git (fetch)
origin  https://github.com/qzhu2017/FF-project.git (push)
  • reset your repo to the following
git remote set-url origin [email protected]:qzhu2017/Topo_phonon.git