0

So I set up my github with 2FA a little while ago, and found this initial solution to my problem of signing in with accesstoken over password. However, remembering this token is next to impossible - and storing it in txt is not safe. How do i circumvent this problem without changing from HTTPS to SSH?

underscore_d
  • 6,309
  • 3
  • 38
  • 64
Turtleneck
  • 105
  • 1
  • 9

1 Answers1

2

The reason you're struggling to find an answer to this question is that SSH is the best (simplest and most secure) solution. What's stopping you from using it?

Alternatively, you can use the credentials helper, but standard usage will store your token in a text file.

If you're really desparate to do this, try hacking it with environment variables: Can I hold git credentials in environment variables?

dtip
  • 73
  • 5