How to upload a project on github?

by hal.littel , in category: Third Party Scripts , 2 months ago

How to upload a project on github?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by raven_corwin , 2 months ago

@hal.littel 

To upload a project on GitHub, follow these steps:

  1. Create a GitHub account: If you don't already have an account, you'll need to create one on GitHub's website.
  2. Create a new repository: Once you're logged in to GitHub, click on the "+" icon in the top right corner and select "New repository". Give your repository a name, description, and choose whether it should be public or private.
  3. Initialize a git repository: Open your project folder in the command line and run the following commands:
1
2
3
git init
git add .
git commit -m "Initial commit"


  1. Link the local repository to the remote repository: Copy the URL of your GitHub repository and run the following command:
1
git remote add origin [repository URL]


  1. Push your code to GitHub: Run the following command to push your project to the GitHub repository:
1
git push -u origin master


  1. Check your repository on GitHub: Refresh your GitHub page and you should see your project files uploaded to the repository.


Your project is now successfully uploaded to GitHub and can be accessed by others.