【问题标题】:How to move a file from the staging area to the working tree in Git?Git 如何将文件从暂存区移动到工作树?
【发布时间】:2022-12-04 11:10:24
【问题描述】:

For example, I have a file called test1.txt in my local folder. I\'ve added it to the staging area using git add -A. Now how can I move test1.txt from the staging area to the working tree?

  • Can you clarify what you mean by move to \"the working directory\". Is it not in the same working git directory?
  • It\'s the local directory, from which it\'s been moved to staging aread
  • Git calls this the working tree (in early versions of Git, Git called it both \"working tree\" and \"working directory\"). I updated the question text to match modern usage.

标签: git staging


【解决方案1】:
【解决方案2】:
猜你喜欢
  • 1970-01-01
  • 2011-11-05
  • 2013-11-12
  • 2016-06-16
  • 2020-01-16
  • 1970-01-01
  • 1970-01-01
  • 2023-03-17
  • 2011-03-07
相关资源
最近更新 更多