Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 408 Bytes

90-github-2fa.md

File metadata and controls

26 lines (19 loc) · 408 Bytes

Configure a Github Account With 2FA Enabled

  • Install required packages :
$ sudo apt-get install -y git
  • Execute the following command :
$ git config --global --edit
  • Edit the file as follows :
[user]
  name = <your_username>
  # generate PAT here: https://github.com/settings/tokens
  password = <your_pat>
[credential]
  helper = cache
  • Save file and exit.