jiang@DESKTOP-H9PNI47 MINGW64 /d/File/Git/Vehicle_2_0 (lzj_vehicle_2.0)
$ git stash list
jiang@DESKTOP-H9PNI47 MINGW64 /d/File/Git/Vehicle_2_0 (lzj_vehicle_2.0)
$ git stash --list
error: unknown option `list'
usage: git stash [push [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet]
[-u|--include-untracked] [-a|--all] [-m|--message <message>]
[--] [<pathspec>...]]
-k, --keep-index keep index
-p, --patch stash in patch mode
-q, --quiet quiet mode
-u, --include-untracked
include untracked files in stash
-a, --all include ignore files
-m, --message <message>
stash message
--pathspec-from-file <file>
read pathspec from file
--pathspec-file-nul with --pathspec-from-file, pathspec elements are separated with NUL character
jiang@DESKTOP-H9PNI47 MINGW64 /d/File/Git/Vehicle_2_0 (lzj_vehicle_2.0)
$ git stash -list
error: unknown switch `l'
usage: git stash [push [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet]
[-u|--include-untracked] [-a|--all] [-m|--message <message>]
[--] [<pathspec>...]]
-k, --keep-index keep index
-p, --patch stash in patch mode
-q, --quiet quiet mode
-u, --include-untracked
include untracked files in stash
-a, --all include ignore files
-m, --message <message>
stash message
--pathspec-from-file <file>
read pathspec from file
--pathspec-file-nul with --pathspec-from-file, pathspec elements are separated with NUL character
jiang@DESKTOP-H9PNI47 MINGW64 /d/File/Git/Vehicle_2_0 (lzj_vehicle_2.0)
$ git stash -l
error: unknown switch `l'
usage: git stash [push [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet]
[-u|--include-untracked] [-a|--all] [-m|--message <message>]
[--] [<pathspec>...]]
-k, --keep-index keep index
-p, --patch stash in patch mode
-q, --quiet quiet mode
-u, --include-untracked
include untracked files in stash
-a, --all include ignore files
-m, --message <message>
stash message
--pathspec-from-file <file>
read pathspec from file
--pathspec-file-nul with --pathspec-from-file, pathspec elements are separated with NUL character
jiang@DESKTOP-H9PNI47 MINGW64 /d/File/Git/Vehicle_2_0 (lzj_vehicle_2.0)
$ git stash list
jiang@DESKTOP-H9PNI47 MINGW64 /d/File/Git/Vehicle_2_0 (lzj_vehicle_2.0)
$ git status
On branch lzj_vehicle_2.0
Your branch is up to date with 'origin/lzj_vehicle_2.0'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: README.MD
no changes added to commit (use "git add" and/or "git commit -a")
jiang@DESKTOP-H9PNI47 MINGW64 /d/File/Git/Vehicle_2_0 (lzj_vehicle_2.0)
$ git stash -m "2020-1009-v2.0未完成"
Saved working directory and index state On lzj_vehicle_2.0: 2020-1009-v2.0未完成
jiang@DESKTOP-H9PNI47 MINGW64 /d/File/Git/Vehicle_2_0 (lzj_vehicle_2.0)
$ git status
On branch lzj_vehicle_2.0
Your branch is up to date with 'origin/lzj_vehicle_2.0'.
nothing to commit, working tree clean
jiang@DESKTOP-H9PNI47 MINGW64 /d/File/Git/Vehicle_2_0 (lzj_vehicle_2.0)
$ git checkout master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
jiang@DESKTOP-H9PNI47 MINGW64 /d/File/Git/Vehicle_2_0 (master)
$ git checkout lzj_vehicle_2.0
Switched to branch 'lzj_vehicle_2.0'
Your branch is up to date with 'origin/lzj_vehicle_2.0'.
jiang@DESKTOP-H9PNI47 MINGW64 /d/File/Git/Vehicle_2_0 (lzj_vehicle_2.0)
$ git stash list
stash@{0}: On lzj_vehicle_2.0: 2020-1009-v2.0未完成
jiang@DESKTOP-H9PNI47 MINGW64 /d/File/Git/Vehicle_2_0 (lzj_vehicle_2.0)
$ git stash apply stash@{0}
On branch lzj_vehicle_2.0
Your branch is up to date with 'origin/lzj_vehicle_2.0'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: README.MD
no changes added to commit (use "git add" and/or "git commit -a")
jiang@DESKTOP-H9PNI47 MINGW64 /d/File/Git/Vehicle_2_0 (lzj_vehicle_2.0)
$ git status
On branch lzj_vehicle_2.0
Your branch is up to date with 'origin/lzj_vehicle_2.0'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: README.MD
no changes added to commit (use "git add" and/or "git commit -a")
jiang@DESKTOP-H9PNI47 MINGW64 /d/File/Git/Vehicle_2_0 (lzj_vehicle_2.0)
$ git stash -m "2"
Saved working directory and index state On lzj_vehicle_2.0: 2
jiang@DESKTOP-H9PNI47 MINGW64 /d/File/Git/Vehicle_2_0 (lzj_vehicle_2.0)
$ git stash apply stash@{0}
On branch lzj_vehicle_2.0
Your branch is up to date with 'origin/lzj_vehicle_2.0'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: README.MD
no changes added to commit (use "git add" and/or "git commit -a")
jiang@DESKTOP-H9PNI47 MINGW64 /d/File/Git/Vehicle_2_0 (lzj_vehicle_2.0)
$ git checkout master
Switched to branch 'master'
M README.MD
Your branch is up to date with 'origin/master'.
jiang@DESKTOP-H9PNI47 MINGW64 /d/File/Git/Vehicle_2_0 (master)
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: README.MD
no changes added to commit (use "git add" and/or "git commit -a")
jiang@DESKTOP-H9PNI47 MINGW64 /d/File/Git/Vehicle_2_0 (master)