workflow - Which git commands can delete your stashes? -


I usually work with the git hiding place "What am I doing" Is a safe place where temporary code is to be stored.

But I'm surprised that git commands which can damage / hide my hiding place, and I should be careful about it

  • drop the git hide & lt; Stash & gt;
  • git hiding pop
  • clear git hiding < / Li>

    An example I've found is that the

    • git pull / fetch?
    • But what's the gate reset? But I am interested in those cases where you may have unexpected losses of your skeps while performing other operations than working on stash.
    • Anything else?

      OK, maybe possibly safe as (unpublished) commits itself In fact, if you see that when you make a hiding, then what are the objects made, you will see that the stash is actually a comma. The only difference is that they are transported differently. Like

      So, Comets, while some still point to the stash, they can not be deleted automatically by normally commit some For, you usually have a branch, a tag or some other point, but for the station, you have two essentials where there is a pointer to the object:

      stored in the latest relics .git / refs / secret fund . When you use station commands without a specific parameter, it is being used. Unless you remove the reformor, which is unlikely to be possible with normal use, this place is safe.

      The information is stored in .git / logs / refs / stash so that the other stays, that is, stored in full stash list. Now, accessible entries reflogs is subject to garbage collection by default ( git gc --auto ) except 30 days that it applies station Refel Does not happen, which is actually handled separately.

      So, unless you manually do not hide cut referrals, you'll win other commands

      And even if the indicator station list (for whatever reason ) Disappears, you can still try to recover the locations which git fsck --lost-found for a while.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -