How to store projects in Git (open source)

1. Open the code cloud official website

insert image description here

2. Create a warehouse

insert image description here

3. Global configuration

insert image description here

4、Windows+R,cmd

enter:

git config --global user.name "jasmine_QiQi"
git config --global user.email "[email protected]"

insert image description here
insert image description here

5. Configure the remote project (there is an existing vue project locally)

1. Open my project:
insert image description here
2. Enter powershell in my project path
insert image description here
insert image description here
3. Enter:

git remote add origin https://gitee.com/jasmine-qiqi/vue_shop.git

insert image description here
insert image description here
4. Input git status, check git status
insert image description here
5. If some files are not found, input git add ., add all files to the storage area
insert image description here
6. Input and git commit -m "add files"submit to local
insert image description here
7. Check the status again git status
insert image description here
8. Input

git push -u origin "master"

insert image description here
insert image description here
PS: Students who upload the project to the code cloud for the first time will pop up a prompt box, enter the user name and password, and after the first input, and then transfer the project to the code cloud, there is no need to input it again, it will be like the picture.

9. Refresh the newly created warehouse page, and you will see that the local project has been uploaded to the code cloud
insert image description here

Guess you like

Origin blog.csdn.net/weixin_45065754/article/details/123364178