用好Git stash,助你事半功倍

git stash:
用法:git stash list [<选项>]
  或:git stash show [<选项>] [<stash>]
  或:git stash drop [-q|--quiet] [<stash>]
  或:git stash ( pop | apply ) [--index] [-q|--quiet] [<stash>]
  或:git stash branch <分支名> [<stash>]
  或:git stash clear
  或:git stash [push [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet]
          [-u|--include-untracked] [-a|--all] [-m|--message <消息>]
          [--pathspec-from-file=<file> [--pathspec-file-nul]]
          [--] [<路径规格>...]]
  或:git stash save [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet]
          [-u|--include-untracked] [-a|--all] [<消息>]

参考场景

posted @ 2021-02-13 23:49  二锅头不上头  阅读(89)  评论(0编辑  收藏  举报