7. Stash

Contents

    Basic commands

    git stash save
    Adds an element to the stash list and restores the working directory to the index status.

    git stash list
    Lists all elements of the stash list.

    git stash show
    git stash show stash@{0}

    git stash apply
    Applies an element from the stash list to the working directory

    git stash drop
    Removes an element from the stash list.

    git stash clear
    Removes ALL the elements from the stash list.

    Composite commands

    git stash pop

    git stash branch newBranchName

    Proudly Powered by Zim 0.75.2.

    Template by Etienne Gandrille, based on ZeroFiveEight and using JQuery Toc Plugin.