码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2016-08-12 06:42:29      阅读:126      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!