Git - Stash
customer escalation . . commit commit
git stash stage area commit stack
[jerry@CentOS project]$ git status -s M string.c ?? string
branch customer escalation commit Stash, Commit . stash git stash
[jerry@CentOS project]$ git stash Saved working directory and index state WIP on master: e86f062 Added my_strcpy function HEAD is now at e86f062 Added my_strcpy function
working directory git stasus
[jerry@CentOS project]$ git status -s ?? string
branch . stash git stash list
[jerry@CentOS project]$ git stash list
stash@{0}: WIP on master: e86f062 Added my_strcpy function
customer escalation - - . git stash pop stack working directory
[jerry@CentOS project]$ git status -s ?? string [jerry@CentOS project]$ git stash pop
:
# On branch master
# Changed but not updated:
# (use "git add ..." to update what will be committed)
# (use "git checkout -- ..." to discard changes in working directory)
#
#
modified: string.c
#
# Untracked files:
# (use "git add ..." to include in what will be committed)
#
#
string
no changes added to commit (use "git add" and/or "git commit -a")
Dropped refs/stash@{0} (36f79dfedae4ac20e2e8558830154bd6315e72d4)
[jerry@CentOS project]$ git status -s
M string.c
?? string
Advertisements