I received a mail that
Hi @SoumyaRanjanNaik,
You recently used a password to access the repository at <sensitive data> with git using git/2.25.1.
Basic authentication using a password to Git is deprecated and will soon no longer work. Visit https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information around suggested workarounds and removal dates.
Thanks,
The GitHub Team
So I want to understand if
I should stop using git and instead start using the github-cli instead ?
Is git access being deprecated to older git version or is it the case for all git versions ?
Top comments (8)
They’re almost definitely not ending git CLI support. The error you’re receiving is because they’re deprecating using your password rather than a token to access repos over HTTP. You can use a personal access token as your password (docs.github.com/en/free-pro-team@l...).
Thanks for the explanation. 😄
There are some pretty good security reasons for enforcing this, but this is also a pretty easy way to get folks to start using their cli since a lot of this workflow is already baked in there.
For anyone else who hasn't gotten the above email (and is interested in the announcement): github.blog/2020-12-15-token-authe...
Yeah right there are security reasons.
I also felt that they are trying to push their cli a little bit.
Still they are giving us the choice that's important
This is very big privacy issue. One of my friends who mustn't access a repo got to know my repo name by this fault. He entered the terminal by an account, and after cloning any repo, he gets a mail even though the repo is private
You need to use ssh for your GitHub account. Search Google and then read the official docs
Its not that we only require ssh.
We can still use HTTPS but need to use personal token.
We can also use their github-cli.
That's what their docs said.
yup