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://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
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
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 Git stash and share.First, a simple intr
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 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 is not added, that is, there is no "tracked"
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:$
0. Introduction
The picture shown in the tutorial is a github warehouse image, please visit the original address of a friend with slow speed
Take a look at the personal tech Station when you're free.
In the actual project development, always encounter the code to write half (unable to hit commit ), to open a new branch to fix bugs or increase the functionality of the situation. If you do not, the unmodified code is brought into a new branch that is created temporarily, and th
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. Use
When you update your code with GIT pull, you encounter the following problem:
Error:your local changes to the following files would is overwritten by merge: xxx/xxx/xxx.php please , commit R changes or stash them before you can merge. Aborting
This problem occurs because others have modified the xxx.php and submitted to the Repository, and you have modified the xxx.php, you have a
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 use the Gitstash. Then there are two j
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 previous work. $
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.