How VSCode Secretly Handles Git Authentication (And I Reverse Engineered It)
Reason: Until now after setting up my git repo using git init , i would immediately open it in VS Code as a project and would run the git commands through the terminal in VS Code. So, in the previous post, [link] I noticed that setting up a private git repo on both termux and my laptop required SSH, and it required me to generate a public key and add that key to github. However, I had never needed to go through such a process while linking a local folder to Git. That made me wonder whether this was an issue with my git repo being private. So, I started looking into it. After exploring, I found out that, wheter private or public, to link a git repo to the local folder, you need either an SSH key or a PAT token to authenticate your laptop. PAT tokens are high security modern version of passwords. They are used when you want to link repo using http Git stopped allowing real passwords to be entered for command line actions in 2021. You must generate these in Github s...