finally after a long struggle i found a way for this.
while adding remote git repository in terminal using VS code (as i have done) include token like below
https://[email protected]/xxxyyy/repository-name
when you give the command git remote -v
then you should be able to see token included in the repository name.
then give git push origin main