When you use Git svn, when you commit a record, some of the file changes do not require a commit.When Git svn dcommit to SVN, the local directory must be saved as clean. So we need to do stash, and then in DcommitAfter Dcommit, you need to stash aply in githave been using
Command: Git stash1. 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
Git temporary modification-git stash, git temporary-gitstash
Temporary modifications to track files (excluding untrack files, newly added files are still visible after stash, but newly added files cannot be restored through stash
In software development, bugs are like a routine, with bugs that need to be fixed, and in Git, because the branches are so powerful, each bug is repaired by a new branch, after the repair, the branch is merged, and then the temporary branch is deleted.When you receive a bug that fixes a code name of 119, it's natural to create a branch issue-119 to fix it, but the current work on Dev hasn't been submitted yet.[Email protected] Mingw32/c/gitskill (Dev)
From: http://blog.csdn.net/qinjienj/article/details/7475890
Developers often encounter this situation: it takes a few days to create a new function, and has changed more than a dozen files. Suddenly, a bug needs to be solved urgently, and then a build test group is given. Before the advent of git, manual backup was basically required, which was time-consuming and error-prone.
In short, the GIT
http://m.blog.csdn.net/article/details?id=26815433
has been using Git stash to temporarily save temporary changes, yesterday found this article git stash command, said to be using Git stash save-a will add the new code file at t
Git Stash UsageRecently, when using GIT to manage project projects, there are a lot of problems, but also learned a lot about the common use of GIT skills, the following is about the use of Gi
Http://blog.csdn.net/qinjienj/article/details/7475890
Developers often encounter this situation: it takes a few days to create a new function, and has changed more than a dozen files. Suddenly, a bug needs to be solved urgently, and then a build test group is given. Before the advent of git, manual backup was basically required, which was time-consuming and error-prone.
In short, the GIT
When the development of a branch is not completed, but also switch to another branch for development, in addition to commit the original branch of the code to change the method, I think git stash is a more convenient choice.The steps are as follows:First, add changes to stash. In the original branch git
Sometimes, you do not want to submit the job, but you have to switch to another branch to use stash.
"'Store'" can get the intermediate state of your working directory-that is, the tracked file you modified and temporary changes-and save it to a stack of unfinished changes. medium, applications can be re-applied at any time.Notes
Note the definition of the scope of action in the above sentence. If your file
1.git stash combing 1.1git stash cloning and synchronizationFirst, the logic of stash git is this.When a new change is made locally, when the current version is not present at the time of submission, it is necessary to pull the latest version of develop in your own code ware
Git stash can be used to stage the current work, such as to pull the latest code, do not want to add a new commit, or another situation, in order to fix an urgent bug, first stash, so that return to their previous commit, change the bug after the stash pop, Continue the original work.Basic command:$
Command: Git stash1. Using git stash 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
Git stash can be used to stage the current work, such as to pull the latest code, do not want to add a new commit, or another situation, in order to fix an urgent bug, first stash, so that return to their previous commit, change the bug after the stash pop, Continue the original work.Basic command:$
Save and resume progress with git stash command git stashSaving the current work progress will save the staging area and workspace changes. After executing this command, when you run the git status command, you will find that you are currently in a clean workspace with no changes.
the current workspace content to the git stack.Git stash pop: reads the last saved content from the Git stack and restores the workspace. Because there may be multiple stash content, the pop reads the content from the most recent stash and recovers it by using a stack to ma
Original: http://gitbook.liuhui998.com/4_5.htmlI. Basic operation when you are doing a complex job, you find a bug that is not relevant to your current job but is annoying. You want to fix the bug and do the work at hand, then you can use Git stash to save the current state of work, after you fix the bug, the "anti-storage" (Unstash) operation can go back to the
Label: Style Color sp c work r BS as app Purpose: when you are working on a project on a branch, you suddenly have to stop and do other things, but because the project has not been changed, you can keep the site without the need to commit it, wait until you are busy and then reply to the site for further modification. Bug handling stored at the development site$Git stash is currently "stored" at the work
This afternoon in the use of GIT command code management, because of their own negligence of the work of the day to lose the results of their own, this is also a terrible, scared the baby. Really, I believe that the code lost friends must be able to understand my mood, can not understand my mood that I wish you also lost code, so you can deeply appreciate my mood. Hey, then calm down for two seconds, mom eg
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.