This video explains how to upload data created in Visual Studio Code to GitHub.
If you want to upload to GitHub but keep encountering repeated errors, this should help you resolve such problems.
Step①: Create a repository GitHub
First, create a repository on GitHub.
Click “New”, then enter the repository name and other details on the “Create a new repository” page.
Step②:Clone the repository created on GitHub to your local environment.
Follow the steps below.
① Open Visual Studio Code.
② Open the terminal.
③ Navigate to the folder where you want to clone the repository (e.g., working folder).
In the terminal, run the cd command to move to your working directory.

The data from GitHub will be cloned into this location.
Note that the current path is displayed in the terminal prompt, but if you are already in that directory, you can skip this step.
④ Run the clone command:
Run the following command:

This operation downloads the repository to the specified local directory as a folder named “test.”
Step ③: Open the folder in VS Code
①Open the test folder in VSCode.
Step ④: Place the files
①In Visual Studio Code’s Explorer, upload files such as main.py and the data/ folder.
Through these steps, you have now set up the test folder in Visual Studio Code, where you can create and modify files and folders from here on.
②: Create a virtual environment.
You will run the following commands in the terminal, in order.
python -m venv env
env\Scripts\activate
pip install -r requirements.txt
pip install -r requirements.txt is a command that installs all the libraries liste d in the requirements.txt file at once.
For example, if streamlit is listed in this file, it will be automatically installed.
This allows you to successfully deploy your app to platforms such as Streamlit Cloud.
Step ⑤: Set up .gitignore
Before uploading to GitHub, list any unnecessary data in the .gitignore file. (such as env files).
Step ⑥: Commit changes to Git and push to GitHub
Run the following commands to upload your project files to GitHub.
git add .
git commit -m "Initial commit"
git push origin main
This completes the process of uploading your data to GitHub.

