Check the prerequisites
Sign in to github.com. Open Terminal, PowerShell, or Git Bash and run git --version.
Do not paste access tokens, passwords, or private SSH keys into a repository or terminal command shared by someone else.
GitHub account, web browser, Git, and a terminal
Git reports a version number and GitHub opens while you are signed in.