From the course: Complete Guide to Git
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Configure GitHub credentials - Git Tutorial
From the course: Complete Guide to Git
Configure GitHub credentials
- [Instructor] When you interact with a remote, it needs to authenticate you to be sure that your access is allowed. Once you have a GitHub account, you can log into their website with your credentials. However, to access the remote from the command line, we'll need to do a little more configuration. Before 2021, Git allowed you to authenticate by just typing your username and password on the command line, but that's not great security for protecting everyone's source code. So Git encourages everyone to use multifactor authentication on their accounts. And for command line access, they offer a few options instead of a simple username and password. One technique is to generate an access token that can be used instead of a password. You can either enter this token whenever you're prompted for a password, or you can store the token in your credentials so that they're sent automatically. Another technique is to set up SSH keys. That's slightly too advanced for this course, but not too…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.