1 Introduction
During the development process, we will encounter "there is a problem with the current content, but we don't want to delete it completely and return to the original state of the code". At this time, the staging stack stash provided by Git solves this problem well. , We can temporarily cache the modified content in the temporary storage stack stash, and then pop out the content in the temporary storage stack stash when needed
2. Use
暂停内容到队列中:git stash
暂停内容到队列中,并添加提示信息:git stash save "message"
弹出暂存队列中的第一个内容:git stash pop
清空所有暂存部分内容:git stash clear
清空第一个队列内容:git stash drop stash@{
0}
You can also pop up the information temporarily stored at a time. The
pop-up sequence is 0-1-2. The earlier the stored content, the higher the number.