@hal.littel
To upload a project on GitHub, follow these steps:
- Create a GitHub account: If you don't already have an account, you'll need to create one on GitHub's website.
- 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.
- 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"
|
- 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]
|
- Push your code to GitHub: Run the following command to push your project to the GitHub repository:
1
|
git push -u origin master
|
- 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.