Git: 版本控制(7)

2019-04-14  本文已影响0人  柏龙

暂时(保存,恢复,删除)工作进度 git stash

On branch master
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   git8.md

no changes added to commit (use "git add" and/or "git commit -a")
Saved working directory and index state On master: 修改了git8.md
stash@{0}: On master: 修改了git8.md
diff --git a/git8.md b/git8.md
index b1892a0..04f249a 100644
--- a/git8.md
+++ b/git8.md
@@ -1 +1,2 @@
 ### 保存,恢复,删除工作进度 stash
+- `git stash save '修改了git8.md'`
On branch master
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   git8.md

no changes added to commit (use "git add" and/or "git commit -a")
上一篇 下一篇

猜你喜欢

热点阅读