DEV Community

John Maths
John Maths

Posted on

2

How to upload Project on GitHub: A Step-by-Step Guide

Step 1 : Open your Github account

Image description

Step 2 : Click on new repository

Image description

Step 3 : Fill out the repository details

  • Repository name: (e.g., project-name)
  • Description: (optional)
  • Public or Private: Choose based on your preference.

Image description

Step 4 : Click "Create repository"

Image description

Step 5 : Open Cmd and Navigate to your project directory

Image description

Step 6 : tpye "git init" and hit enter

Image description

Step 7 : tpye "git add . " and hit enter

Image description

Step 8 : tpye 'git commit -m "anything" ' and hit enter

Image description

Step 9 : Copy the repository URL After creating the repository

you will see the URL (it will look like https://github.com/yourusername/your-repo.git).

Image description

Step 10 : tpye "git remote add origin https://github.com/yourusername/your-repo.git" and hit enter

Image description

Step 11 : tpye "git push -u origin main" and hit enter

Check if your default branch is main instead of master, use:
git push -u origin master

Image description

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay