❝
Git is a complex version control system with many commands, some of which are hard to remember even when used frequently. With the help of TortoiseGit, you can use git in TortoiseGit.
❞
1. Install Git and Tortoisegit
❝
Download and install the software in the following sequence
❞
“Git installation“
Download address: git-scm.com/downloads (go to next to complete installation)
“Download and install TortoiseGit“
Download address: tortoisegit.org/download/’ve been to the next ()
“Download and install the TortoiseGit package“
Download address: tortoisegit.org/download/’ve been to the next ()
Click on your desktop or any folder → Tortogit → Setting → General to change language to Chinese and click OK
2. Tortoisegit
(1) Configure users
Go to Settings and click the git TAB on the left. On the right, you can configure the user’s name and Email information
(2) the clone
Right-click Git clone and enter the git repository address and local storage address
If the clone is successful, you can see the corner identifier on the folder:
The icon on the file can reflect the status of the current file or folder:
1, normal: green check
2, modified: red exclamation mark
New addition: blue plus!
Uncontrolled (without version control) : Blue question mark
5, ignore uncontrolled: gray minus sign
6. Deleted: The red X
7. Conflicting: Red exclamation marks
“Tip:“
“If the status icon does not display properly, see the following tutorial:“
TortoiseGit status icon does not display properly
(3) Submit push code
Right click on the blank area of your local project and select “Git Commit (C) -> “master”…
In the Commit dialog box, complete the description of the Commit and select the file to be committed. You can create a branch as required, and then click the “Commit” button to Commit the modification to the local repository:
The submission progress window pops up. After the submission is successful, you need to “push” the modification of the local warehouse to the remote warehouse:
Synchronous Pull. If multiple people collaborate or multiple clients make changes, you need to perform synchronous Pull before pushing. Operation:
Click on the Tortoisegit folder and click on the Tortoisegit folder.
If the file on the server has been modified (the local file is not the latest version before modification), a conflict will be prompted. Resolve the conflict before submitting the result:
(4) Create a branch
Create a branch from Tortoisegit:
(5) Switch branches
Click on the Tortoisegit folder and click on the Tortoisegit folder.
(6) View logs
Click on the Tortoisegit folder as Tortoisegit:
Reference website:
www.cnblogs.com/anayigeren/…
This article is formatted using MDNICE