使用git stash.

 

1. 假定项目中有一个文件删除之

git rm README.rdoc

 

2. 执行

git status

 显示:

Saved working directory and index state WIP on master: bfcdf14 test git
HEAD is now at bfcdf14 test git

 3. 使用 git stash list

$ git stash list
stash@{0}: WIP on master: bfcdf14 test git

 

4. 拿出来使用 git stash pop

git stash pop

 

相关文章:

  • 2022-12-23
  • 2022-03-06
  • 2022-03-07
  • 2021-04-01
  • 2022-01-02
  • 2022-12-23
  • 2021-04-02
猜你喜欢
  • 2021-09-11
  • 2021-09-09
  • 2021-11-17
  • 2022-12-23
  • 2021-07-10
  • 2021-09-25
相关资源
相似解决方案