How to upload multiple projects in a git warehouse

Today I will teach you how to upload multiple projects in a single git warehouse. This is limited to small projects or personal projects.

Go to the cloud to create an empty warehouse, then clone it locally, enter the folder and create an empty folder, cut the outer .git file to the second folder, and the second folder can store the files we want to upload N projects, but remember to add .gitignore ignore files in each project to prevent node_modules from being uploaded.

git operation command

git status  
git add .
git commit -m 'feat:首次提交两个项目'
git pull
git push

Open the current warehouse refresh page of github, enter each project to check if there is any shortfall, if not, it means success

Guess you like

Origin blog.csdn.net/Steven_Son/article/details/128441086