当我们更改代码时(例如,C类),应用程序的数据内容会发生变化。我要的是及时归还,把文件夹保留到昨天
如果可以,请在问题中描述的序列之前将分支重置为提交:
git log
,并在注释为“cached”的提交之前选择提交。
git checkout -b newBranch <oldCommit>
git push -u origin newBranch
我们的目标是将您的更改报告给
newBranch
在把旧的换掉之前。
那么,如果你需要忽略
Tp_Integrador/Tp_Integrador
,但不是子文件夹,请在
.gitignore
中
新牧场
):
Tp_Integrador/Tp_Integrador/**
!Tp_Integrador/Tp_Integrador/**/
!Tp_Integrador/Tp_Integrador/App_data/
那样的话,
git rm -r --cached . , git add .
将从添加文件
Tp_Integrador/Tp_Integrador/App_data/
,但不来自
Tp_Integrador/Tp_Integrador/
.