current position:Home>Wechat applet development (VII) -- use of version management

Wechat applet development (VII) -- use of version management

2021-08-26 19:59:43 Empty city machine

This is my participation 8 The fourth of the yuegengwen challenge 22 God , Check out the activity details :8 Yuegengwen challenge

When developing a multi person cooperative project, we often encounter the situation of program version management , It is generally possible to use GitHub、Gitee、SVN

Next, let's explain the version management process in the development of wechat applet :

One 、 In the development process of wechat applet , If you are using WeChat developer tools , You can change the project directly in the version management in the upper right corner . This is actually convenient for developers to use , And more unified

 Insert picture description here




Two 、 After clicking, the version management window will pop up , If it is opened for the first time, it will let you choose initialization Git Warehouse

 Insert picture description here

What does initialization look like :

 Insert picture description here




3、 ... and 、 Click Settings , In it, you can edit and add user information , This user information will still exist the next time you use the developer tool to create a new project

 Insert picture description here




Four 、 Click Remote , Remote can be configured inside Git Warehouse information , I'm using Gitee The warehouse of

 Insert picture description here

 Insert picture description here

 Insert picture description here Here I want to make complaints about it. , Why is there only add but not delete here . And delete in the left far end , Only when there are more than two

 Insert picture description here




5、 ... and 、 Remote settings completed Gitee after , It can be found that the remote warehouse just added also appears in the remote warehouse on the right , Then right-click the warehouse , You can choose Grab . Appears after grabbing master Branch

 Insert picture description here

 Insert picture description here




6、 ... and 、 Do you feel very familiar with the operation here , Next, just pull it ,Let's Go

Ha ha ha , unfortunately Pull error The error message is : no merge base found

 Insert picture description here

Check out can be selected here master, You can choose to check out this branch when you create it , You can also select this branch to check out later on the left

 Insert picture description here

 Insert picture description here

 Insert picture description here




7、 ... and 、 Now you can see that the code in the project is different , It is already the latest code in the warehouse

 Insert picture description here




8、 ... and 、 Modify the code , Then open version management , Find that your changes have been documented at work , Very concise , Then submit the code in the submission area below

 Insert picture description here

 Insert picture description here

 Insert picture description here




Nine 、 Push , Here you may need to configure your network and authentication settings Gitee Account and password of

 Insert picture description here

 Insert picture description here

At this point to see gitee Warehouse , It's already the latest

 Insert picture description here


Yes, of course , This is only the most basic version management method , Others Git Not one by one , If you are interested , You can go to the official API have a look :developers.weixin.qq.com/miniprogram…

copyright notice
author[Empty city machine],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2021/08/20210826195919284A.html

Random recommended