Experimenting with GIT #Git

Was doing some experiments with Git and gitignore

The following worked to achieve what I was trying to achieve…all the images and all the unnecessary files in the var folder were being tracked…

“To untrack a single file that has already been added/initialized to your repository, i.e., stop tracking the file but not delete it from your system use: git rm –cached filename

To untrack every file that is now in your .gitignore:

First commit any outstanding code changes, and then, run this command:

git rm -r –cached .

This removes any changed files from the index(staging area), then just run:

git add .

Commit it:

git commit -m “.gitignore is now working”

To undo git rm –cached filename, use git add filename.

Reference: http://stackoverflow.com/questions/1139762/ignore-files-that-have-already-been-committed-to-a-git-repository From: http://sitestree.com/?p=6050
Categories:Git
Tags:
Post Data:2016-12-27 20:03:29

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada