First use of tortoisegit

Time:2020-10-31

Tortoise Git is called TGIT for short, and its Chinese name is GIT. Tortoisegit is an open source client of GIT version control system, which has a graphical user interface (GUI) for git operation. Tortoisegit supports WinXP / Vista / win7 / win10 and provides multilingual support.
   this article describes how to use tortoisegit to manage projects on gitlab.
   how to install GIT and tortoisegit is not covered here. On my windows system, GIT version number is 2.18.0, tortoisegit version number is 2.6.0.
    open puttygen in tortoisegit, generate public key and private key on the local machine, and select RSA as the secret key type, as shown in the following figure:
First use of tortoisegit
Then save the public key and private key, that is, save the generated key.
    open your own or company’s gitlab page, select SSH keys in settings, and then copy the contents of the public key file just generated (only select the part of comment to end) to SSH keys in gitlab, as shown in the following figure (part of the content has been erased)
First use of tortoisegit
After successful addition, fingerprints will be generated, as follows:
First use of tortoisegit
   after the above configuration, we will learn how to manage the project with tortoisegit. In order to facilitate the demonstration, the author creates a new project git on gitlab_ Test, it contains only one README.md Documents, as follows:
First use of tortoisegit
    right click in the place you specified (such as disk d), select tortoisegit, select clone, enter the address of the project just now and select the private key file just generated to clone the project, as shown below:
First use of tortoisegit
   modification REAMD.md Time and version. Next, we will submit this change to gitlab.
  right click GIT_ Test, select tortoisegit, select commit > “master”, and fill in the submission information, as shown in the following figure:
First use of tortoisegit
Click commit & push (note that if it is the commit button, the modification is not submitted to the online, and it needs to be pushed once). It should be noted that gitlab’s account number and password may need to be entered during this process.
   after the submission is successful, we modify the README.md As follows:
First use of tortoisegit
   then the author will put the README.md The branch in the file is changed to develop to demonstrate how to commit to other branches.
                    
First use of tortoisegit
   after the submission is successful, there will be two branches in gitlab project. After opening the development branch, the contents are as follows:
First use of tortoisegit
   this is the end of this sharing. I will introduce some in-depth knowledge of GIT.
Thank you for reading~