Skip to content

Get git to stop asking for username and password everytime

Kumar Damani edited this page Feb 14, 2019 · 1 revision

Get git to stop asking for username and password on every command. This can get infuriating.

We need to use ssh instead of http

  1. Check if you already have ssh key. Use steps from here

If you don't have SSH key, you need to first generate them (Skip this step (2) if you already have them):

  1. Generate key: here
  2. Add key to ssh-agent: here
  3. Add key to your GitHub: here
  4. checkout a fresh copy of the repo using SSH: git clone [email protected]:csc301-winter-2019/project-team-02.git