In the daily development process, it is inevitable that you will encounter situations where you need to perform complex operations or handle conflicts. At this time, the Stash function in TortoiseGit can come in handy. Stash can temporarily save the current workspace state (including modified and deleted files) so that developers can perform other tasks first and then restore to the previous state. Below, we will introduce in detail the specific operation methods of Stash in TortoiseGit to help you better manage code changes.
1. After downloading and installing tortoisegit, in your own project folder, select [Stash Save] from the right-click menu
2. In the pop-up window Enter the description information you need in the Message text input box, and then click OK
3. After step 2, the processing interface shown in the figure below will pop up. Wait for Success. Click the Close button to close the window
4. After step 3, the temporarily modified code is temporarily saved. Next, select [Switch/checkout] from the right-click menu of the project root directory. , you can switch the current branch
5. Or select [Stash List] from the right-click menu of the mouse to view the list of stash codes
##6. After step 5, the window that pops up is as shown in the figure, which is the temporary directory. The first one is the temporary record
The above is the detailed content of Detailed operation method of stash temporary code in TortoiseGit. For more information, please follow other related articles on the PHP Chinese website!