Discuss / Git / $ git stash lish时报错

$ git stash lish时报错

Topic source

Aubrey·Chen

#1 Created at ... [Delete] [Delete and Lock User]

$ git stash lish

fatal: unknown subcommand: lish

usage: git stash list [<options>]

   or: git stash show [<options>] [<stash>]

   or: git stash drop [-q|--quiet] [<stash>]

   or: git stash ( pop | apply ) [--index] [-q|--quiet] [<stash>]

   or: git stash branch <branchname> [<stash>]

   or: git stash clear

   or: git stash [push [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet]

          [-u|--include-untracked] [-a|--all] [-m|--message <message>]

          [--pathspec-from-file=<file> [--pathspec-file-nul]]

          [--] [<pathspec>...]]

   or: git stash save [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet]

          [-u|--include-untracked] [-a|--all] [<message>]

Aubrey·Chen

#2 Created at ... [Delete] [Delete and Lock User]

才发现打错了list,但为什么我$ git stash list后他什么也没显示呢?

Aubrey·Chen

#3 Created at ... [Delete] [Delete and Lock User]

还有个问题:

$ git branch -d issue-101

error: The branch 'issue-101' is not fully merged.

If you are sure you want to delete it, run 'git branch -D issue-101'.

BRYAN_LEE_

#4 Created at ... [Delete] [Delete and Lock User]

大哥,您细心点,新增分支是-b,你-d是删除。

小5__

#5 Created at ... [Delete] [Delete and Lock User]

dev分支上删除issue-101会报错,在master分支上使用git branch -d issue-101可以成功。

猜测是因为issue-101分支已经合并到master了,但是没有合并到dev。


  • 1

Reply