Step 1: Sign up
- Go to github.com and click Sign up
- Fill in your details:
- Username — Pick something professional. Employers and collaborators will see this.
- Email — Use an address you check regularly.
- Password — Make it strong.
- Complete any verification steps GitHub shows you
Step 2: Verify your email
GitHub sends a verification email immediately after you sign up. Open it and click the confirmation link before doing anything else.Step 3: Set up your profile
A complete profile makes a strong impression when you share your work:- Click your profile picture in the top right, then select Your profile
- Click Edit profile
- Add your Name (your real name), a Profile picture, and a short Bio like “Learning Python for AI development”
Step 4: Configure Git locally
Tell Git who you are so your commits are labelled correctly. Run these commands once in your terminal — you’ll never need to repeat this step:Step 5: Choose your authentication method
When Git needs to talk to GitHub (to push or pull code), it has to verify who you are. Choose one of the three methods below:Recommended for beginners: Use GitHub CLI. It’s the most modern option, handles everything automatically, and takes the least effort to set up.
- GitHub CLI (Recommended)
- HTTPS with Token
- SSH Keys
GitHub CLI (3. Follow the interactive prompts:
gh) is GitHub’s official command-line tool. It handles authentication automatically and works with all Git operations.1. Install GitHub CLI:- Windows — Download from cli.github.com
- macOS — Run
brew install gh - Linux — See the installation guide
- Choose GitHub.com
- Choose SSH (recommended) or HTTPS
- Select Login with a web browser and follow the steps
gh credentials from now on.What’s next?
With your account and authentication ready, learn how to download existing projects and publish your own code to GitHub.Clone and Create
Start working with repositories — clone AI projects and push your own code