git learning notes 05--git stash
An excerpt from the Git authoritative guide
Git stash is used to save and restore work progress.
Git stash
Saves the current work progress. The state of the staging area and workspace are saved separately.
git stash List
Displays a list of progress. This command clearly implies that
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. $ git stash save "working in P
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 stash command is used to help developers temporarily shelve th
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 you want to submit your code to the code site for simultaneous development, here I recommend using bitbucket because it is free hehe, you can create a private group warehouse and can assign permissions to team members, GitHub create a private group warehouse is charged.
BitBucket features 1. Unlimited number of private warehouses 2. Unlimited disk space 3. Support HTTPS/SSH 4.Bug tracking 5. Project Wik
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 pop after being modified again after stash -- becauseThis command does not save files
if you want to submit your code to the code site for synchronous development, here I recommend using BitBucket because it is free hehe, can create a private group warehouse and can assign permissions to team members,GitHub create a private group warehouse is charged . BitBucket features 1. Unlimited number of private warehouses 2. Unlimited disk space3. Support Https/ssh at the same time4.Bug Tracking 5. Pr
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)$ git statusOn Branch DevChanges to be commit
:0px; padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/89/E9/wKioL1ghhFuSju1MAAEWq7FN-Vc920.png "width=" 936 "height=" 923 "/>After the test succeeds, click the test and save button.650) this.width=650; "title=" image "style=" border-right-width:0px;background-image:none;border-bottom-width:0px; padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt=" im
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 warehouse.In the Git stash setting if automatic s
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 site, SoYou can create branches with confiden
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 git usage
Problem:
The following occurs when git pull is used:
Error: Your local changes to the following files wocould be overwritten by merge: xxx/xxx. java Please,
The reason for choosing BitBucket as a warehouse here is that it can set up a 5-person team under the premise of setting up a private warehouse: https://bitbucket.org/registration BitBucket II: http://www.sourcetreeapp.com/ download/(Download sourcetree install, select default path) Three: Http://www.perforce.com/downloads/Perforce/Customer (download p4merge install select default path) Four: Set P4merge as
Repository Size Limitsby Justen Stepka, Product Manager on the May 30, 2014In order to improve and maintain the overall performance for everyone who uses bitbucket, we is rolling out size limits ON newly-created repositories. Starting today, repository size limits'll be:
Soft limit of 1 GB –in-product and email notifications would give you a heads-up so you ' re approaching the Limi T.
Hard Limit of 2 GB –pushing to the repository would b
1. Open Gitbash or Gitshell to perform$ ssh-keygen2. Prompt for the location where key is saved, enter directlyEnter file in which to save the key (/C/USERS/{YOUR_USER_NAME}/.SSH/ID_RSA):3. You will be prompted to enter the SSH password, go directly to twoCreated directory '/c/users/{your_user_name}/.ssh '. Enter passphrase (empty for no passphrase): Enter same passphrase again:4. Open the directory:C:\users\{your_user_name}\.sshYou can see two files:Id_rsaId_rsa.pub5. Open the Id_rsa.pub file a
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 hold after the bug was fixed and re-loaded.
You can think of running the stash action as
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 not want to write again that disgusting UI a
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 version:$ git revert Commit-idStashThe uncommitted changes are staged first, and then all cha
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.