git 忽略文件

1、设置.gitignore

// 忽略所有除了 app文件夹及app问价夹下的所有
/*
!app

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln

2、 备份本地项目所有文件

3、删除本地目录除了app之外的所有文件,并提交到git服务器 OK~

posted @ 2019-03-05 19:59  MvloveYouForever  阅读(90)  评论(0编辑  收藏  举报