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 eggs, can not be so recognized planted it, I do
already in use may be rejected, causing serious problems with the repository. If you do this, it's a good idea to log off once, for security reasons.MergeMerges the specified branch to the current branch:$ git Merge Branch-nameRevertRevert submitted changes (changes that have been submitted, can be undone ~)Revert the last-commit modification:$ git revert HEADTo revert the modification of the specified ver
with git, it will naturally come into contact with more commands like this.The concept of branching above must be understood, as this is the basis for understanding git pull and git push. As you can see, there's no git pull and git push involved in the previous tutorial, be
Label: git pop stash list clear
Git version 1.9.6
Git name Stash: helps developers temporarily hold the changes they have made, move them back to the status before the changes, and perform other necessary operations (such as solving a bug ), changes that were put on h
If the working area and staging area files are changed, save them, ignore these changes, and return to the last submitted state. You can use git stash.
Assume that there is a file T in the project and it is first deleted from git rm t. This file disappears in the working area.
Then execute the GIT
Please commit your changes or stash them before you merge, commitstashPreface
Recently, gitlab has been used for version control and collaborative work. It is not very familiar with the use of git, and git is only used in the git bash command line, summary of bugs encountered during
If some of the configuration files on the system have been modified on the server, and then the subsequent development adds some new configuration items,A code conflict occurs when this configuration file is published:Error:your local changes to the following files would is overwritten by merge:protected/config/main.phpPlease, commit your changes or stash them before you can merge.If you want to keep the changes made on the production server, just inc
Stash sign in when prompted to enter a verification code, but the verification code does not show, how to solve it?Error message: 650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/72/85/wKiom1XlXJ_wyyq-AAFhGMLGC1I205.jpg "title=" Login error. png "alt=" wkiom1xlxj_wyyq-aafhgmlgc1i205.jpg "/>Check out the reasons for the specific error through Chrome's review element:
Error creating Bean with Name ' Imagecaptchaserviceprototype '
Header file PStash.h/*** book: "thinkinginc++" * Function: pointer stash's header file * Date: October 5, 2014 14:33:15* Author: cutter_point*/#ifndef pstash_h_included# Define Pstash_h_includedclass pstash{ int quantity; The number of storage blocks for internally defined data types int next; The position of the next empty space void** storage; Point to a pointer to void* void inflate (int increase);//Increase memory space public: //Constructor Pstash (): quantity
?? original articles, reproduced please specify the Source: Server non-amateur research http://blog.csdn.net/erlib author Sunface Contact e-mail:[email protected] Although I have been working on server-side development for many years, but because of personal interests, for HTML5CSS3 attention to research for a long time, the following will add some of their own collection of dry goods:1.http://html5up.net/A very good foreign HTML5 template website, Sunface portrait recommended! 2.http://sc.china
is resolved, we produce some results through "git log", but this time we will add some parameters to "git log".At the same time, the most recent object diagram is given here.Branch related operationsIn the use of branch, we will often use the Stash and diff operations, respectively, described below.StashIn Git,
, and we can see that they have been merged, however, fast forward merge cannot be seen as a merger.
15. Bug Branch1. If you are currently developing on the dev branch, there is a bug that needs to be quickly resolved and merged to the master. In this case, you can create a new branch on the master (Named bug-101 ).The content on dev cannot be submitted, so you need to store it through git stash. After sto
.
(%) Bug Branch
Each bug can be repaired by a new temporary branch, after the fix, merge the branch, and then delete the temporary branch.
1.git Stash
Store the current work site, and continue to use it later after replying to the site.
git stash List
View the stash sto
branches: git checkout-b Merge a branch to the current branch: git merge Delete branch: Git branch-d -------Resolve Conflicts-------$ git log--graph--pretty=oneline--abbrev-commit Branch Merge diagram ----------Branch management policy?----------Master Branch Master The cleanest branch does no action on this branchDe
to fix, in Git, the branch is very powerful, each bug can be repaired by a temporary branch, after the completion of the repair, merge branches, and then delete the temporary branch.For example, when I get a 404 bug in development, we can create a 404 branch to fix it, but the work on the current dev branch is not yet committed. such as the following:It's not that I don't want to commit, but the work is done halfway through, and we're not able to com
|\
| * 6224937 Add Merge
|/
* 59BC1CB Conflict fixed
...
When repairing a bug with a code name of 101, it is natural that you want to create a branch issue-101 to fix it
When fixing a bug, there is still work to be done but cannot be submitted can freeze progress
In your current workspace (branch)
$ git stash//freezes the current branch modification
See all Sta
=onelineWithout using fast forward mode, the principleBranching policy:In the actual development, we should follow several basic principles of branch Management:First of all, the master branch should be very stable, that is, only to release the new version, usually do not work on it;So where do you work? Work on the Dev branch, that is, the dev branch is unstable, at some point, such as the 1.0 release, then merge the Dev branch to master and release the 1.0 version in the Master branch;You and
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.