This is the easiest way to connect your VSCODE with github.
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access 'https://github.com/XXX/XXX.git/': The requested URL returned error: 403
Reference: Creating Personal Access Token
When you clone the repository
git clone https://<TOKEN>@github.com/<username>/<repository_name>.git
Example
git clone https://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@github.com/siakew/personal-access-token.git
Or for existing repository
git remote set-url origin https://<TOKEN>@github.com/<username>/<repository_name>.git
Example
git remote set-url origin https://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@github.com/siakew/personal-access-token.git