GitHub Account and Repository

Creating a GitHub Account

To use GitHub, a free account is needed. GitHub offers free accounts with unlimited public and private repositories.

Step 1 — Sign Up

  1. Go to https://github.com
  2. Click "Sign up"
  3. Enter an email address
  4. Create a strong password
  5. Choose a unique username — this will be part of a public profile URL like github.com/username
  6. Complete the CAPTCHA verification
  7. Verify the email address by clicking the link sent to the inbox

Choosing a Username

The GitHub username appears on all contributions, pull requests, and the public profile. Choose a username that is professional, easy to remember, and ideally matches other professional profiles. Avoid usernames with random numbers unless necessary.

GitHub Account Plans

PlanCostFeatures
Free$0/monthUnlimited public and private repos, basic Actions, GitHub Pages
Pro$4/monthAdvanced insights, more Actions minutes, protected branches
Team$4/user/monthCollaboration tools for organizations
Enterprise$21/user/monthAdvanced security, compliance, and admin features

The free plan is sufficient for most individual developers and learners.

Setting Up a Profile

After signing in, the profile can be customized at github.com/username:

  • Add a profile photo
  • Write a short bio
  • Add a location and website URL
  • Pin important repositories to the profile
  • Create a special README file for the profile (by creating a repo with the same name as the username)

Creating a New Repository on GitHub

Method 1 — Using the GitHub Website

  1. Log in to GitHub
  2. Click the "+" icon in the top-right corner
  3. Select "New repository"
  4. Fill in the details:
    • Repository name — Keep it lowercase, use hyphens instead of spaces (e.g., my-portfolio)
    • Description — Optional but recommended
    • Visibility — Public (anyone can see) or Private (only invited people)
    • Initialize repository — Optionally add a README, .gitignore, and license
  5. Click "Create repository"

Repository Initialization Options Explained

OptionWhat it DoesWhen to Use
Add a READMECreates a README.md file describing the projectAlways recommended — provides a homepage for the repo
Add .gitignoreCreates a .gitignore based on the chosen languageUse when starting a project from GitHub
Choose a licenseAdds an open-source license (MIT, Apache, etc.)Use for public projects to define usage rights

Understanding the Repository Page

After creating the repository, the main page has several key sections:

  • Code tab — Browse all files and folders in the repository
  • Issues tab — Bug reports and feature requests
  • Pull Requests tab — Pending code changes for review
  • Actions tab — Automated workflows (CI/CD)
  • Settings tab — Repository settings, collaborators, and more
  • Clone/Code button — The HTTPS or SSH URL used to clone the repo locally

Writing a Good README.md

The README.md file is the first thing people see when visiting a repository. A good README should include:

# Project Name

A short description of what the project does.

## How to Install

Steps to set up the project locally.

## How to Use

Example usage and commands.

## Technologies Used

List of tools, languages, and frameworks used.

## Contributing

Instructions for contributing to the project.

## License

MIT License

Deleting or Renaming a Repository

To rename or delete a repository:

  1. Open the repository on GitHub
  2. Go to Settings (last tab on the repository page)
  3. To rename: Change the name in the "Repository name" field and click "Rename"
  4. To delete: Scroll to the "Danger Zone" section at the bottom and click "Delete this repository"

Warning: Deleting a repository is permanent and cannot be undone. Always make sure a local backup exists before deleting.

Summary

Creating a GitHub account is free and straightforward. A repository on GitHub is the online home for a project — it can be public or private. The README.md file serves as the project's homepage and description. After creating a repository on GitHub, the next step is connecting it to a local Git repository using git remote and git push.

Leave a Comment

Your email address will not be published. Required fields are marked *