GitHub setup
Create your account
Let's get you set up with a GitHub account! It's a great place to store your code and collaborate with others.
Create your GitHub account
GitHub is an essential tool for developers. It hosts countless open-source projects. You can share your own work there. Other people can see your code and suggest improvements. It's a key part of modern software development.
Before you can do anything with Git and GitHub, you need an account. We'll walk through the simple steps together.
Step 1: Sign up
Open your web browser and go to github.com. Look for the "Sign up" button. It's usually prominent on the homepage.
- You'll need a valid email address.
- Choose a strong password.
- Pick a username. This will be visible to others.
Step 2: Verify your account
After signing up, GitHub will send an email to the address you provided. This email contains a verification link.
Click this link to confirm your account. It's a crucial step to fully activate your GitHub profile.
Step 3: Set up your profile
Once verified, you might be prompted to answer a few questions about yourself. You can skip these for now or fill them in.
Consider adding a profile picture and a short bio later. This helps others recognize you. You can find these options in your profile settings.
Step 4: Configure Git locally
Now that you have a GitHub account, let's tell Git who you are. This ensures your contributions are correctly attributed.
git config --global user.name "Your Name"
git config --global user.email "your@email.com""Your Name" and "your@email.com" with the name and email you used for your GitHub account. Make sure to use quotes!Step 5: Choose your authentication method
To connect your local Git to GitHub, you need an authentication method. The most common and recommended way is using SSH keys.
SSH keys provide a secure way to push your code to GitHub without entering your username and password every time.
ssh-keygen -t ed25519 -C "your@email.com"Follow the prompts. It will ask where to save the key and for a passphrase. A passphrase adds extra security.
What's next?
You've successfully created your GitHub account and configured Git locally. You're ready to start using version control!
Next, you'll learn how to create your first repository and push your code to GitHub.