Windows Git development and submission code process

The usage of the git estimation code on Linux is generally familiar to engineers engaged in Linux development. It is not described here, but only the usage on Windows.

First, you need to install the GIT TortoiseGit tool. After installation, you can directly perform various git operations on Windows, which is very convenient.

1. Use git to download the code

First configure the global parameters:

git config --global user.name "xxx" //usually a personal account in the company

git config --global user.email "email name"

Right-click, select git clone, and fill in the remote warehouse address and the local storage code directory:

(It is mentioned in some articles that you need to use puttygen to convert the private key of Git to the private key that can be used by the TortoiseGit tool, so that the tool can decrypt the encrypted file sent by the server. When downloading the code for the putty private key, fill in the above picture to load the putty key key. There is no putty key here, and the code can be downloaded successfully.)

2. Git submission code on Windows

Right-click, select Git Commit, and fill in the commit information in the pop-up interface, usually

fix:

DIR:

After filling in the format, confirm that the submitted files are correct, and then click Submit.

Then TortoiseGit -> Push to the code repository.

The code warehouse in the company generally has a personal warehouse and a public warehouse. When developing code, it is generally necessary to fork the public warehouse code in github to the personal warehouse, and then download the personal warehouse code locally for development. After the development is completed, the submitted code is also submitted to the personal warehouse, and then synchronized to the public warehouse. In this process, the more formal process generally requires the committer and other developers to review the code, and it can be merged into the public warehouse after it is confirmed to be correct. This method of white-box inspection can effectively improve software quality and reduce the outflow rate of problems.

Guess you like

Origin blog.csdn.net/hhhlizhao/article/details/128891013
Recommended