- 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.