Unit 0.1: GitHub Account Setup and Basics
Introduction
This guide covers signing up for GitHub, creating repositories, folders, uploading files, and adding collaborators.
Steps to Sign Up for GitHub
- Visit GitHub: Go to GitHub’s website.
- Sign Up: Click “Sign Up” (top-right corner) and fill in:
- Email Address
- Password
- Username
- Verify Human: Complete the CAPTCHA.
- Choose Plan: Select “Free Plan” (default).
- Email Verification: Verify your email via the link sent by GitHub.
- Setup Profile: (Optional) Provide usage preferences.
- Start Using GitHub: Access your dashboard to begin creating repositories.
How to Create a Repository
- Log in to your GitHub account.
- On the dashboard, click the New button (or go to Repositories > New).
- Fill in the repository details:
- Repository Name: Choose a descriptive name.
- Description (optional): Add a short description.
- Visibility: Choose Public (default) or Private.
- Check the box to initialize with a README file (optional but recommended).
- Click Create Repository to finish.
How to Create a Folder and Upload a File
Create a Folder
- Navigate to your repository.
- Click Add File > Create New File.
- Enter the folder name followed by a
/(e.g.,FolderName/), then add a file name. - Add content and click Commit Changes to save.
Upload a File
- Navigate to your repository.
- Click Add File > Upload Files.
- Drag and drop or select files to upload.
- Click Commit Changes to finalize.
How to Add Collaborators
Add a Single Collaborator
- Navigate to your repository.
- Go to Settings > Collaborators and Teams.
- Click Add People and enter the username or email.
- Confirm by clicking Add as Collaborator.
Add Multiple Collaborators
- Follow the same steps as above.
- Add each collaborator one by one by repeating the process.
For more on GitHub, visit GitHub Docs.