Learn how to create a new GitHub repository step-by-step: sign in, set up project details, initialize with README, and clone it locally.
Book a call with an Expert
Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.
Step 1: Sign in to GitHub
Open your web browser and go to https://github.com. In the top-right corner, enter your username (or email) and password. Click the Sign in button to access your dashboard.
Step 2: Access the New Repository page
Once you’re logged in, locate the plus icon (+) in the upper-right header. Click it and choose New repository from the dropdown menu. This will open the repository creation form.
Step 3: Configure your new repository
On the Create a new repository page, fill out the fields and options:
my-first-repo
).Node
, Python
) to exclude files you don’t want in version control.
Step 4: Create the repository
Scroll down and click the green Create repository button. GitHub will generate your new repository and direct you to its main page, where you’ll see instructions for adding files.
Step 5: Clone and work on your repository locally (optional)
To clone your repository to your local machine, copy the HTTPS or SSH URL shown on the repository page and run this command in your terminal:
git clone https://github.com/your-username/my-first-repo.git
After cloning, change into the repository folder and make your first commit:
cd my-first-repo
echo "# Hello World" > README.md
git add README.md
git commit -m "Add hello world heading"
git push origin main
When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.