DEV Community

Soumya Ranjan Naik
Soumya Ranjan Naik

Posted on

Is GitHub going to disable command line access for git ?

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
Enter fullscreen mode Exit fullscreen mode

So I want to understand if

  1. I should stop using git and instead start using the github-cli instead ?

  2. Is git access being deprecated to older git version or is it the case for all git versions ?

Top comments (8)

Collapse
 
nalanj profile image
Alan Johnson •

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...).

Collapse
 
soumyaranjannaik profile image
Soumya Ranjan Naik •

Thanks for the explanation. 😄

Collapse
 
tylerauerbeck profile image
Tyler Auerbeck •

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...

Collapse
 
soumyaranjannaik profile image
Soumya Ranjan Naik •

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

Collapse
 
sahin52 profile image
sahin52 •

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

Collapse
 
aahnik profile image
Aahnik Daw • • Edited

You need to use ssh for your GitHub account. Search Google and then read the official docs

Collapse
 
soumyaranjannaik profile image
Soumya Ranjan Naik •

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.

Collapse
 
aahnik profile image
Aahnik Daw •

yup