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
will use the git push command. Of course there is no accident here, because it is probably in git version after 1.9.2, git default push mode changed to Simple mode, personal comparison suggested this way (that is, where pull from, I push back where). You can view your current push mode by 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
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
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
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
delete the issue-404 branch. The demo is as follows:Now, we're back to work on the Dev branch.The work area is clean, so where do we go on the job site? We can use the command git stash list to view the next. As follows:Work site is still, git put stash content somewhere, b
Related articles:For a way to verify that an SSH configuration exists and generate an SSH key, refer to the article: Git usage manual: Generate SSH key for SSH key usage and public key in GitHub, Gitlab configuration, please refer to article: Git usage manual: Use SSH key and configure SSH Key public key on the concepts and relationships of
to create a temporary branch on the master branch. The demo is as follows:
After the repair is completed, switch to the master branch, complete the merge, and finally Delete the issue-404 branch. The demo is as follows:
Now, we are working on the dev branch.
The work zone is clean. Where can we go to the work site? You can run the GIT stash LIST command to view the details. As follows:
The work site is
the repair is complete, switch to the master branch, complete the merge, and finally delete the issue-404 branch. The demo is as follows:Now, we're back to work on the Dev branch.The work area is clean, so where do we go on the job site? We can use the command git stash list to view the next. As follows:Work site is still, g
, and now I'm going to create a temporary branch on the Master branch, which demonstrates the following:After the repair is complete, switch to the master branch, complete the merge, and finally delete the issue-404 branch. The demo is as follows:Now, we're back to work on the Dev branch.The work area is clean, so where do we go on the job site? We can use the command git
delete the issue-404 branch. The demo is as follows:Now, we're back to work on the Dev branch.The work area is clean, so where do we go on the job site? We can use the command git stash list to view the next. As follows:Work site is still, git put stash content somewhere, b
branch, for example, I'm now fixing it on the master Branch master, and now I'm going to create a temporary branch on the Master branch, which demonstrates the following:After the repair is complete, switch to the master branch, complete the merge, and finally delete the issue-404 branch. The demo is as follows:Now, we're back to work on the Dev branch.The work area is clean, so where do we go on the job site? We can use the command
. The demo is as follows:Now, we're back to work on the Dev branch.The work area is clean, so where do we go on the job site? We can use the command git stash list to view the next. As follows:Work site is still, git put stash content somewhere, but need to restore, can
delete the issue-404 branch. The demo is as follows:Now, we're back to work on the Dev branch.The work area is clean, so where do we go on the job site? We can use the command git stash list to view the next. As follows:Work site is still, git put stash content somewhere, b
, and now I'm going to create a temporary branch on the Master branch, which demonstrates the following:After the repair is complete, switch to the master branch, complete the merge, and finally delete the issue-404 branch. The demo is as follows:Now, we're back to work on the Dev branch.The work area is clean, so where do we go on the job site? We can use the command git
Git's first use Git common command query Git push Git pull before introducing installation and simple use, let's take a look at The introduction in Baidu Encyclopedia: ---------------------------------- Git --- The stupid conte
restore the workspace to a state that has not been modified in the current version git stash list View all records stored in "Somewhere" git stash clear empty "somewhere" git
Related articles:For a way to verify that an SSH configuration exists and generate an SSH key, refer to the article: Git usage manual: Generate SSH key for SSH key usage and public key in GitHub, Gitlab configuration, please refer to article: Git usage manual: Use SSH key and configure SSH Key public key on the concepts and relationships of
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.