thesuhu

Git Remember Credential

Nov 5th, 2020 (edited)
2,254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.69 KB | None | 0 0
  1. # github remember password
  2. # tambahkan config global berikut untuk windows, ini akan menyimpan credential
  3. # windows
  4. git config --global credential.helper wincred
  5. # linux, set git to use the credential memory cache
  6. git config --global credential.helper cache
  7. # linux, set the cache to timeout after 1 hour (setting is in seconds)
  8. git config --global credential.helper 'cache --timeout=3600'
  9.  
  10. # remove cache credential
  11. git config --global --unset credential.helper
  12.  
  13. #create token
  14. # 1. account profile -> setting -> developer setting -> personal access token
  15. # 2. pull repo, login dengan username, password dengan token 8266c263f069aae773.........
  16.  
  17. # hint:
  18. # paste token di cmd, ALT+SPACE+E+P
Add Comment
Please, Sign In to add comment