How to Create and Configure GitHub Account
Learn how to create a GitHub account, set up a repository for your website, and configure it for deployment.
1. Download git
- What is Git? - Git is a distributed version control system that allows developers to track changes in their code, collaborate with others, and manage different versions of their projects. It is widely used in software development and is the underlying technology behind platforms like GitHub.
- For Windows: Download Git and run the installer.
- For macOS: Open terminal and run command:
brew install git - For Linux: Open terminal and run command:
sudo apt-get install git git-extras - Verification: After installation, open terminal and run command:
git --versionto verify that Git is installed correctly. You should see the installed version of Git displayed in the terminal.
Steps to download and install Git
2. Sign up and configure a GitHub Account
- What is GitHub? - GitHub is a web-based platform that uses Git for version control. It allows developers to host and manage their code repositories, collaborate with others, and deploy websites and applications.
- Go to GitHub Signup Page.
- Click
Continue with Googleor fill out the form with your email address, password, and username. - Verify your email address by clicking on the link sent to your inbox.
- Set your GitHub username and email in Git. Open your terminal and run the following commands:
git config --global user.name "Your Name" git config --global user.email "[email protected]" - Open your terminal and generate an SSH key pair using the command:
ssh-keygen -t ed25519 -C "[email protected]"# Press Enter until the key is generated - Copy the public key to your clipboard:
cat ~/.ssh/id_ed25519.pub# Or open the file in a text editor - Go to your GitHub => Settings and navigate to the SSH and GPG keys section.
- Click on New SSH key and paste the public key you copied earlier.
- Open VS-Code and click on robot like icon on bottom right corner.
- Click on
Sign in to GitHuband follow the prompts to authenticate with your GitHub.
Create a GitHub account
Configure Git with your GitHub account
Enable ssh key for authentication
Enable GitHub Copilot
3. What's next?
- Now that you have your GitHub account set up and configured, you can create a new repository to host your website files. This repository will allow you to manage your website's code, track changes, and deploy updates easily. Refer to the guide on How to Create a Personal Website without Coding for detailed steps.
