Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 606 Bytes

Lab-7.3-The-Stash.md

File metadata and controls

37 lines (22 loc) · 606 Bytes

The Fourth Area

git stash push
# or
git stash

git stash --u   # include untracked files
git stash --all

git stash pop

git stash pop --index   # stage any previously staged files

git stash list

git stash apply stash@{2}

git stash drop stash@{2}

# keeps any staged files
git stash --keep-index

patch -p

git stash -p

create a branch out of it

git stash branch new-branch-name

clean destruction

# -n whatIf, dry run
git clean -d -f -n  # -d remove directories

# interactive
git clean -i