Command: Git stash
1. Using Gitstash to save the current work site, you can switch to another branch to work, or do other urgent work on the current branch, such as revising a bug test submission.
2. If a git stash is used to switch to a branch, and the work on that branch is not completed, it needs to save its work site. Then use the Gitstash. Then there are two job sites in the stash queue.
3. You can use Git stash list. View the stash queue.
4. What to do if you want to restore a job site on a branch: first use git stashlist to view the stash queue. Determine which work site to restore to the current branch. Then use git to stash pop [email protected]{num}. Num is the number of the job site you want to restore.
5. If you want to empty the stash queue, use git stash clear.
6. Also note that using the git stashpop command is to restore the stash queue [email protected]{0}, the top-level job site. and using the pop command to recover the work site, its corresponding stash is deleted in the queue. Using the git stash apply [email Protected]{num} method is not the same as Git stashpop except Stash queue deletion.
Transferred from: http://blog.sina.com.cn/s/blog_682d2aaf01016d9d.html
How to use the "go" Git stash