如何让github停止track某些文件

经常有这样的场景,一不小心push了无用的文件/文件夹到github库,例如IDE自动生成的xml文件,从此每次打开IDE或编译软件后,git status里都有一堆东西嚷嚷着说我被修改了。另外就是一不小心把不该公开的内容push出去了,关于这点,github官方有一个指南,如何删除敏感信息。然而一般的情况下,只是想在未来的版本中停止track某些文件,直接如下简化操作即可。

1、从cache中删除文件夹file,或删除目录dir

2、修改.gitignore文件,添加

3、提交commit

4、push到github

130 thoughts on “如何让github停止track某些文件

  1. 搞笑影片说道:

    很不錯哦,加油

  2. over here说道:

    I simply want to mention I’m very new to blogging and seriously savored this web site. Most likely I’m planning to bookmark your site . You definitely have remarkable articles and reviews. Regards for sharing your website.

  3. kumahasiaweh说道:

    Hi there, I found your site by way of Google while looking for a comparable topic, your website got here up, it looks great. I’ve bookmarked it in my google bookmarks.

  4. Metroclick.coM(说道:

    MetroClick specializes in building completely interactive products like Photo Booth for rental or sale, Touch Screen Kiosks and Digital Signage, and experiences. With our own hardware production facility and in-house software development teams, we are able to achieve the highest level of customization and versatility for Photo Booths, Touch Screen Kiosks and Digital Signage. MetroClick, 121 Varick St, #301, New York, NY 10013, +1 646-843-0888

  5. ~FaytecH.us说道:

    Faytech North America is a touch screen Manufacturer of both monitors and pcs. They specialize in the design, development, manufacturing and marketing of Capacitive touch screen, Resistive touch screen, Industrial touch screen, IP65 touch screen, touchscreen monitors and integrated touchscreen PCs. Contact them at http://www.faytech.us, 121 Varick Street,3rd Floor,New York, NY 10013,+1 646 205 3214

  6. my response说道:

    Truly helpful points that you have remarked, thank you so much for writing.

  7. dentysta gorzów说道:

    My developer is trying to convince me to move to .net from PHP. I have always disliked the idea because of the expenses. But he’s tryiong none the less. I’ve been using Movable-type on a variety of websites for about a year and am anxious about switching to another platform. I have heard very good things about blogengine.net. Is there a way I can transfer all my wordpress posts into it? Any help would be greatly appreciated!

  8. Merely wanna state that this is very helpful , Thanks for taking your time to write this.

  9. It’s almost unattainable to come across well-updated men and women on this issue, however, you look like you understand whatever you’re writing about! Gratitude

  10. dentysta gorzów说道:

    Wow that was strange. I just wrote an very long comment but after I clicked submit my comment didn’t appear. Grrrr… well I’m not writing all that over again. Anyway, just wanted to say fantastic blog!

  11. I do accept as true with all the ideas you have introduced for your post. They’re very convincing and will definitely work. Nonetheless, the posts are too brief for beginners. May just you please extend them a little from subsequent time? Thanks for the post.

  12. top article说道:

    It happens to be the best time to create some intentions for the long-term. I’ve looked over this blog entry and if I should, I wish to suggest you a few enlightening tips.

  13. You are my intake, I possess few web logs and occasionally run out from post :). “Actions lie louder than words.” by Carolyn Wells.

  14. dentysta gorzów说道:

    BLOGTITLE!! , I like your writing so so much! proportion we be involved more approximately your posting on AOL? I need an expert during this space to unravel great problem. Maybe that is you actually! Having a look ahead to seek BLOGURL. NAME

  15. click to read说道:

    I merely need to advise you that I am new to blog posting and really adored your information. Very possible I am inclined to remember your blog post . You undoubtedly have outstanding article content. Acknowledge it for swapping with us the best internet site article

  16. Extraordinarily significant details you’ll have remarked, warm regards for setting up.

  17. Hello, I check your blog regularly. Your humoristic style is witty, keep doing what you’re doing!

  18. I like this site very much, Its a real nice berth to read and obtain info . “The superior man is modest in his speech, but exceeds in his actions.” by Confucius.

  19. Flower delivery说道:

    Hello, I read your new stuff on a regular basis. Your humoristic style is awesome, keep doing what you’re doing!

  20. dentysta gorzów说道:

    It’s the best time to make some plans for the future and it’s time to be happy. I’ve read this post and if I could I desire to suggest you few interesting things or tips. Maybe you can write next articles referring to this article. I want to read more things about it!

  21. Thank you for all your valuable labor on this web page. My daughter take interest in participating in investigation and it’s easy to understand why. Most of us notice all of the dynamic tactic you convey very useful things by means of your web site and as well inspire response from people on the article then our daughter is undoubtedly studying a great deal. Enjoy the rest of the new year. You’re conducting a very good job.

  22. Hello There. I found your blog using msn. This is a really well written article. I’ll make sure to bookmark it and return to read more of your useful info. Thanks for the post. I’ll definitely return.

  23. naturally like your web site but you have to take a look at the spelling on quite a few of your posts. A number of them are rife with spelling problems and I in finding it very bothersome to tell the reality however I will definitely come back again.

  24. I truly appreciate this post. I’ve been looking everywhere for this! Thank goodness I found it on Bing. You’ve made my day! Thank you again!

  25. I happen to be writing to make you understand of the brilliant discovery my cousin’s princess undergone viewing your webblog. She learned some pieces, with the inclusion of what it’s like to have a wonderful teaching heart to make others really easily learn various advanced subject matter. You truly surpassed visitors’ expectations. Thanks for churning out such practical, dependable, revealing and as well as easy tips about the topic to Janet.

  26. you are in point of fact a excellent webmaster. The web site loading speed is amazing. It sort of feels that you’re doing any distinctive trick. Furthermore, The contents are masterpiece. you have performed a magnificent process on this matter!

  27. read the article说道:

    I really hope to notify you that I am new to wordpress blogging and absolutely adored your website. Probably I am probably to remember your blog post . You certainly have excellent article information. Admire it for telling with us your site information

  28. Some really choice blog posts on this website , saved to favorites .

  29. I gotta favorite this site it seems invaluable handy

  30. Thank you for the sensible critique. Me & my neighbor were just preparing to do some research about this. We got a grab a book from our area library but I think I learned more clear from this post. I’m very glad to see such wonderful info being shared freely out there.

  31. Hello, Neat post. There’s a problem with your site in web explorer, could check this… IE still is the marketplace leader and a huge component of other folks will pass over your excellent writing due to this problem.

  32. Rattling fantastic info can be found on website . “The only thing you take with you when you’re gone is what you leave behind.” by John Allston.

  33. biocentro说道:

    Biocentro.cl en PROVIDENCIA, Santiago Chile es el mejor en impartir cursos de masajes, cursos de masajes, cursos de masaje, cursos de masajista

  34. Hi, Neat post. There is an issue with your website in internet explorer, may check this… IE nonetheless is the market leader and a big component to folks will leave out your great writing because of this problem.

  35. MichaelJemery.com is a site with many hypnosis downloads. Whether you are looking for free hypnosis downloads, self hypnosis download for mp3, video and any audio files, Michael Jemery has the downloads for you. You can download hypnosis from apps, audio, mp3 and even youtube !

  36. Emeryeps.com说道:

    Emeryeps is a SEO(Search Engine optimzation) and Internet Marketing company. They help businesses to get traffic from various search engine and online community. They have seo experts and consultants with many years of SEO Experiences. No matter where your business is located, EmeryEPS.com can help your business to secure your highly convertible leads online.

  37. Health & Fitness说道:

    I am glad for writing to make you understand of the great discovery my wife’s child gained visiting yuor web blog. She learned lots of things, with the inclusion of what it is like to possess a very effective giving mindset to get other individuals without problems know precisely specific hard to do subject areas. You truly did more than my expectations. I appreciate you for rendering the invaluable, healthy, revealing and also easy tips about the topic to Ethel.

  38. hi!,I really like your writing so a lot! proportion we keep up a correspondence extra about your article on AOL? I require an expert on this area to unravel my problem. May be that is you! Looking forward to see you.

  39. There is perceptibly a bunch to realize about this. I consider you made various nice points in features also.

  40. Thanks for the sensible critique. Me and my neighbor were just preparing to do some research about this. We got a grab a book from our local library but I think I learned more clear from this post. I am very glad to see such magnificent information being shared freely out there.

  41. Automotive说道:

    It¡¦s actually a nice and helpful piece of info. I am glad that you just shared this helpful information with us. Please keep us informed like this. Thank you for sharing.

  42. Travel & Leisure说道:

    My wife and i felt quite thrilled that Albert could finish up his investigations through your ideas he gained through your site. It’s not at all simplistic to simply possibly be releasing techniques which often other folks could have been trying to sell. Therefore we already know we have the writer to appreciate because of that. The type of illustrations you made, the simple site menu, the friendships your site give support to create – it’s everything superb, and it’s facilitating our son in addition to the family understand this situation is fun, which is certainly especially serious. Thanks for all the pieces!

  43. I dugg some of you post as I thought they were extremely helpful handy

  44. Some truly great posts on this internet site , thankyou for contribution.

  45. But wanna tell that this is handy , Thanks for taking your time to write this.

  46. Good web site! I really love how it is easy on my eyes and the data are well written. I am wondering how I might be notified when a new post has been made. I have subscribed to your RSS feed which must do the trick! Have a great day!

  47. You have brought up a very wonderful points , thanks for the post.

  48. Very nice post. I just stumbled upon your blog and wished to say that I’ve truly enjoyed surfing around your blog posts. After all I’ll be subscribing to your feed and I hope you write again very soon!

  49. dentysta gorzów说道:

    Greetings! I’ve been following your site for a while now and finally got the bravery to go ahead and give you a shout out from Dallas Tx! Just wanted to mention keep up the excellent work!

  50. Wow! This could be one particular of the most helpful blogs We’ve ever arrive across on this subject. Actually Great. I am also a specialist in this topic therefore I can understand your effort.

  51. Very interesting topic , regards for posting . “The reason people sweat is so they won’t catch fire when making love.” by Don Rose.

  52. you’re truly a good webmaster. The web site loading pace is incredible. It kind of feels that you are doing any unique trick. Also, The contents are masterpiece. you have done a excellent activity on this matter!

  53. I have read several excellent stuff here. Certainly worth bookmarking for revisiting. I surprise how a lot effort you put to create this kind of excellent informative site.

  54. What i don’t realize is in truth how you’re now not really a lot more neatly-preferred than you might be right now. You’re so intelligent. You realize therefore considerably with regards to this matter, made me for my part consider it from so many various angles. Its like men and women don’t seem to be involved except it’s one thing to accomplish with Girl gaga! Your individual stuffs great. All the time deal with it up!

  55. I have recently started a site, the info you provide on this web site has helped me greatly. Thanks for all of your time & work. “One of the greatest pains to human nature is the pain of a new idea.” by Walter Bagehot.

  56. hi!,I really like your writing so so much! proportion we keep up a correspondence extra about your post on AOL? I require an expert in this house to resolve my problem. May be that’s you! Having a look forward to look you.

  57. You are my breathing in, I own few blogs and infrequently run out from to post .

  58. I do accept as true with all of the ideas you’ve introduced on your post. They’re very convincing and will definitely work. Still, the posts are too short for starters. May just you please lengthen them a bit from next time? Thanks for the post.

  59. Wow! This blog looks just like my old one! It’s on a totally different subject but it has pretty much the same layout and design. Superb choice of colors!

  60. I’ve learn some good stuff here. Certainly price bookmarking for revisiting. I wonder how so much effort you place to make such a excellent informative site.

  61. Only wanna state that this is very useful , Thanks for taking your time to write this.

  62. It’s a pity you don’t have a donate button! I’d most certainly donate to this fantastic blog! I guess for now i’ll settle for book-marking and adding your RSS feed to my Google account. I look forward to new updates and will talk about this website with my Facebook group. Talk soon!

  63. I simply could not leave your site before suggesting that I extremely enjoyed the usual info a person provide to your guests? Is gonna be back frequently in order to inspect new posts.

  64. It’s the best time to make some plans for the longer term and it is time to be happy. I’ve learn this publish and if I could I desire to recommend you some fascinating things or tips. Perhaps you could write subsequent articles relating to this article. I wish to read even more issues approximately it!

  65. Woah! I’m really digging the template/theme of this website. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between superb usability and visual appeal. I must say you’ve done a excellent job with this. In addition, the blog loads extremely fast for me on Firefox. Exceptional Blog!

  66. cara main domino说道:

    Woah! I’m really enjoying the template/theme of this site. It’s simple, yet effective. A lot of times it’s very difficult to get that “perfect balance” between usability and visual appearance. I must say that you’ve done a excellent job with this. In addition, the blog loads extremely fast for me on Chrome. Excellent Blog!

  67. this site说道:

    37Qaff There as certainly a great deal to learn about this issue. I love all the points you made.

  68. Wow! I cant believe I have found your weblog. Very helpful information.

  69. Lastly, an issue that I am passionate about. I ave looked for details of this caliber for the last several hrs. Your internet site is significantly appreciated.

  70. This is a really good tip particularly to those new to the blogosphere. Short but very accurate information Thank you for sharing this one. A must read article!

  71. dentysta gorzow说道:

    Howdy! This is my first visit to your blog! We are a collection of volunteers and starting a new project in a community in the same niche. Your blog provided us valuable information to work on. You have done a extraordinary job!

  72. I was recommended this blog by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my trouble. You are incredible! Thanks!

  73. I value the blog post.Much thanks again.

  74. I really like what you guys tend to be up too. This type of clever work and exposure! Keep up the terrific works guys I’ve added you guys to my personal blogroll.

  75. You, my friend, ROCK! I found exactly the information I already searched all over the place and simply could not find it. What an ideal site.

  76. Home Improvement说道:

    fantastic points altogether, you just gained a brand new reader. What could you recommend about your submit that you made some days ago? Any sure?

  77. There is clearly a lot to know about this. I assume you made various good points in features also.

  78. This blog was how do I say it? Relevant!! Finally I ave found something that helped me. Thanks a lot!

  79. I loved your blog post.Thanks Again. Really Cool.

  80. find out more on说道:

    LOUIS VUITTON PURSES LOUIS VUITTON PURSES

  81. chaterbate说道:

    There as definately a great deal to learn about this subject. I really like all of the points you made.

  82. دانلود说道:

    Regards for this post, I am a big fan of this site would like to go along updated.

  83. Very informative blog post.Really thank you! Will read on…

  84. It as nearly impossible to find knowledgeable people in this particular topic, however, you seem like you know what you are talking about! Thanks

  85. This is one awesome blog.Much thanks again. Awesome.

  86. پنجره说道:

    Muchos Gracias for your blog.Really thank you! Cool.

  87. Muchos Gracias for your article.Really thank you! Great.

  88. Very informative article post. Will read on…

  89. I really liked your blog.Much thanks again. Want more.

  90. your e-mail subscription link or e-newsletter service.

  91. Health说道:

    I was suggested this website by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my difficulty. You are incredible! Thanks!

  92. wander. Final tug in the class was St. Lately it has been immaculately assembled

  93. Does your website have a contact page? I’m having a tough time locating it but, I’d like to send you an e-mail. I’ve got some recommendations for your blog you might be interested in hearing. Either way, great website and I look forward to seeing it expand over time.

  94. The place else may anybody get that type of info in

  95. Thanks for sharing, this is a fantastic blog post.Thanks Again. Really Cool.

  96. Debate Politics说道:

    very few sites that come about to become comprehensive beneath, from our point of view are undoubtedly effectively worth checking out

  97. http://c-am4.us/说道:

    Im no pro, but I believe you just crafted an excellent point. You certainly comprehend what youre talking about, and I can truly get behind that. Thanks for being so upfront and so truthful.

  98. Camdolls说道:

    The place else may anybody get that type of info in

  99. Business说道:

    I am glad for commenting to let you understand of the magnificent discovery my child developed going through your site. She noticed lots of things, which include what it is like to possess an incredible giving mood to get other people quite simply understand specific extremely tough things. You truly surpassed people’s expectations. I appreciate you for imparting such effective, safe, informative and in addition fun tips about that topic to Julie.

  100. Wohh just what I was searching for, regards for putting up.

  101. Very good article.Thanks Again. Keep writing.

  102. user in his/her brain that how a user can be aware of it.

  103. omegale说道:

    It as best to take part in a contest for probably the greatest blogs on the web. I will advocate this web site!

  104. Women说道:

    magnificent issues altogether, you just received a logo new reader. What might you suggest in regards to your publish that you simply made some days in the past? Any sure?

  105. Hi, I do think this is a great site. I stumbledupon it 😉 I may revisit yet again since I book-marked it. Money and freedom is the greatest way to change, may you be rich and continue to help others.

  106. wow, awesome post.Really thank you! Really Cool.

  107. The best solution is to know the secret of lustrous thick hair.

  108. Career And Jobs说道:

    Hello my family member! I want to say that this post is amazing, nice written and include almost all important infos. I would like to see more posts like this.

  109. I enjoy what you guys are usually up too. This type of clever work and exposure! Keep up the excellent works guys I’ve you guys to blogroll.

  110. Wow, incredible weblog structure! How long have you been blogging for? you make running a blog look easy. The whole glance of your site is wonderful, let alone the content material!

  111. Rice earned this name due to his skill and success in the new cheap nike jerseys season is doomed to suffer from the much feared lockout.

  112. Pretty nice post. I just stumbled upon your blog and wanted to say that I ave truly enjoyed browsing your blog posts. In any case I will be subscribing to your feed and I hope you write again soon!

  113. Fashion说道:

    magnificent points altogether, you simply gained a emblem new reader. What could you suggest in regards to your submit that you just made some days ago? Any positive?

  114. دانلود说道:

    Thanks so much for the article.Much thanks again. Keep writing.

  115. Does your site have a contact page? I’m having problems locating it but, I’d like to shoot you an email. I’ve got some creative ideas for your blog you might be interested in hearing. Either way, great website and I look forward to seeing it grow over time.

  116. What i do not understood is in truth how you are no longer really a lot more smartly-liked than you might be right now. You’re very intelligent. You already know thus significantly relating to this subject, produced me in my opinion consider it from numerous varied angles. Its like men and women aren’t fascinated unless it’s something to do with Girl gaga! Your own stuffs great. Always care for it up!

  117. Technology说道:

    I gotta favorite this web site it seems extremely helpful handy

  118. robloxwiki说道:

    Woah! I’m really enjoying the template/theme of this site. It’s simple, yet effective. A lot of times it’s tough to get that “perfect balance” between user friendliness and visual appeal. I must say you’ve done a superb job with this. Also, the blog loads super quick for me on Safari. Outstanding Blog!

  119. I really appreciate this post. I have been looking everywhere for this! Thank goodness I found it on Bing. You’ve made my day! Thx again!

  120. 迷你仓平说道:

    You have brought up a very excellent details, appreciate it for the post.

  121. Trein说道:

    Im grateful for the article post.Thanks Again. Keep writing.

  122. Treinkaartjes说道:

    you can also Nice blog here! after reading, i decide to buy a sleeping bag ASAP

  123. pretty valuable material, overall I consider this is really worth a bookmark, thanks

  124. This is a really good tip especially to those new to the blogosphere. Simple but very precise info Thanks for sharing this one. A must read article!

  125. Just wanted to say I love reading through your blog and look

  126. boilx.us说道:

    you are actually a just right webmaster. The website

  127. Thanks for another excellent article. Where else could anyone get that type of info in such an ideal way of writing? I ave a presentation next week, and I am on the look for such information.

  128. please pay a visit to the web sites we follow, like this one particular, as it represents our picks in the web

  129. onto a friend who was conducting a little homework on this.

发表评论

电子邮件地址不会被公开。