社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  Git

GitIgnore后文件夹已消失

Agustin Meinardo • 5 年前 • 1329 次点击  

我和我的队友使用visual studio在mvc项目中工作。今天我试着做了一个.gitignore来忽略要提交到我们的存储库的文件夹和一个文件夹( App_Data/ )已经消失(在我们的仓库里)。 我会一步一步地解释我所做的:

  1. 我做了我的.gitignore:
Tp_Integrador/.vs/
Tp_Integrador/Tp_Integrador/obj/
Tp_Integrador/packages/
Tp_Integrador/Tp_Integrador/App_Data/
Tp_Integrador/Tp_Integrador/bin/
Tp_Integrador/Tp_Integrador/Content/
Tp_Integrador/Tp_Integrador/Properties/
Tp_Integrador/Tp_Integrador/Scripts/
  1. git add . , git commit -m "asdfad" git push
  2. git rm -r --cached . , Git添加。 git commit -m "Cached"
  3. 最后,在我们的存储库中,我看不到我们的文件夹 应用程序数据/ 在visualstudio中我看到 应用程序数据/ 空的和一些 .cs (c类)不可追踪,因为队友做了更改,而我没有看到它们。
Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/39847
 
1329 次点击  
文章 [ 3 ]  |  最新文章 5 年前