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

Step 1 : Open your Github account

Step 2 : Click on new repository

Step 3 : Fill out the repository details

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


This content originally appeared on DEV Community and was authored by John Maths

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


This content originally appeared on DEV Community and was authored by John Maths


Print Share Comment Cite Upload Translate Updates
APA

John Maths | Sciencx (2024-07-14T22:33:48+00:00) How to upload Project on GitHub: A Step-by-Step Guide. Retrieved from https://www.scien.cx/2024/07/14/how-to-upload-project-on-github-a-step-by-step-guide/

MLA
" » How to upload Project on GitHub: A Step-by-Step Guide." John Maths | Sciencx - Sunday July 14, 2024, https://www.scien.cx/2024/07/14/how-to-upload-project-on-github-a-step-by-step-guide/
HARVARD
John Maths | Sciencx Sunday July 14, 2024 » How to upload Project on GitHub: A Step-by-Step Guide., viewed ,<https://www.scien.cx/2024/07/14/how-to-upload-project-on-github-a-step-by-step-guide/>
VANCOUVER
John Maths | Sciencx - » How to upload Project on GitHub: A Step-by-Step Guide. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/14/how-to-upload-project-on-github-a-step-by-step-guide/
CHICAGO
" » How to upload Project on GitHub: A Step-by-Step Guide." John Maths | Sciencx - Accessed . https://www.scien.cx/2024/07/14/how-to-upload-project-on-github-a-step-by-step-guide/
IEEE
" » How to upload Project on GitHub: A Step-by-Step Guide." John Maths | Sciencx [Online]. Available: https://www.scien.cx/2024/07/14/how-to-upload-project-on-github-a-step-by-step-guide/. [Accessed: ]
rf:citation
» How to upload Project on GitHub: A Step-by-Step Guide | John Maths | Sciencx | https://www.scien.cx/2024/07/14/how-to-upload-project-on-github-a-step-by-step-guide/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.