首页 > 其他 > 详细

[Practical Git] Remove unnecessary git tracking with .gitignore files

时间:2016-08-12 06:41:15      阅读:199      评论:0      收藏:0      [点我收藏+]

Most projects have automatically generated files or folders from the operating system, applications, package managers etc. Usually, we don‘t want to include these types of things in our remote repos because they can clutter the git history/storage and are not applicable to everyone that works on the project. In this lesson, we show how to create a .gitignore file to ignore files and folders from being tracked by git.

 

If before the files or folders are added staging area, we can add those into .gitingore file, so it won‘t be tracked.

 

But If we also add those file or folder into the staging area, we can run:

git rm --cached

 

[Practical Git] Remove unnecessary git tracking with .gitignore files

原文:http://www.cnblogs.com/Answer1215/p/5763471.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!