This is not safe (use SSH instead) your password will be store in plain text file in
~/.git-credentials
git config --local credential.helper store
git pull
Enter username and password/token and it will be saved
I choose this method over SSH for very specific usecase. I authorized one repository with github's fine grained token in work machine and stored it's credentials in plain .txt file, again remember not safe.