778
Untrack files already added to git repository based on .gitignore - CodeBlocQ
Step 1: Commit all your changes
Step 2: Remove everything from the repository. To clear your repo, use:

git rm -r --cached .

–cached will only remove files from the index. Your files will still be there.
You can untrack a specific file with git rm --cached foo.txt (thanks @amadeann).

The rm command can be unforgiving. If you wish to try what it does beforehand, add the -n or --dry-run flag to test things out.

Step 3: Re add everything
git add .

Step 4: Commit
git commit -m ".gitignore fix"
git  gitignore  ignore  github 
8 days ago
« earlier      
1oct 3bp 7zip 9gag abandoned addon admission adobe aerospace agency album algebra alt amazon amsmath andylau angel anime anki ankiweb api app apple application approximation architecture archive art article articles artist asia asian asiancinema asmr assist astrodynamics asus australia badalona bando bar baralga barcelona bartender basketball beal beca beef bellion bk blake blog book books bootstrap boulder bradley brexit bunpou bus buy car card carter catalonia catalunya cavaliers cd celtics chai channel chimamanda china chinese chintai chrome civil clickmoney clippers cmd color comedy comment comments compiler config contact context converter corruption cospedal coupon course courses cr3bp crashcourse crisis crtbp css curiositat data ddl deandre desktop dessert dictionary discount discounts dnb do doinaustralia doinbarcelona doincatalunya doinchina doinindonesia doinjapan doinnewyork dointokyo donald download downloader doxygen drive dunk dunks ebooks ecsim elearn elearning elections electronic email emanuella epsilon epub equality equation error esa escalada essay estate estudiant eu euler example explorer export extension feminism ferran ferrangonzalezfranquesa fieldworks file film finder firefox flat flathunting flyby folder font fontawesome food foreground form formulari fortran franco free freeware frusciante furniture gallery gaming gcc gen genesis genki genlib gfortran git github gitignore gmv goodreads googlefont gordon gorg grammar graphics gravity greece green griffin guardia guardiacivil hacker hacking hackingscene halo hamiltonian harvard heron hilborn hiragana hot house howto html huang ibooks icons idea ignore ime img independence india indian inline inoue input instagram iphone irc isas james japan japanese japanpost javascript jaxa jazz job john jordan journal jpbank jref jsps jtop jumar juuminhyou kana kanji karwaiwong katakana keyboard klm lagrange lagrangian laptop latex lau lbj lebron libgen library life lifeinjapan lifeintokyo linear linguistics linux listmadrid liveinjapan logic mac machida madrid maher mail manga map mariano mark markangel masdemont math mathematical mathematics mathjax maths mathworks matlab mechanics mediafire mediawiki megalinks meghalaya menjar menu mext miami milk mit mixtape moodle movie mp3 multivariable muntanya music nasa navbar navigation nba newyork nihongo nitori northern notepad notepad++ nyc office olympics onedrive online optimization orbital otrar page paper papers path pdf pdflatex pen pending peps phd philosophy php physics piano playlist plugin poetry police policia politica politics pool postdoc postres powershell pp practice press printf prosperity python quadre ra rajoy randomc rap reader real realestate realtalk recycle redirect ref references referendum refs refugee reg registry relax release remote rental research residence roco roti rpm ru runningman russell russia russian ruta sacramento sagamihara scene scholarship science scihub scott scribd sde search second-hand seinen series servandoni settings setup sexism shima shortcode shuttle simcard simplemathjax simyo singapore skin slam snopt social software soken sokendai song soundcloud soundtrack space spacelifescience spacemaster spacevid spain speech spice sports spring srs statement stm store streaming study studyinjapan suumo swimming swingby symbol table taylor ted tedtalk tex textbook theme themes thomas thread time tofugu tokyo tool topfood torrent toudai tracker train translation travel trial trick troubleshooting trump tweeki twitter upc usa utilities utility valencia verb video videogame videoscomedy videosnba videospolitica vince vincecarter virtualbox vocabulary volunteer wall walnut wanikani westbrook wiki win10 windows wired wishlist wizards women wong wordpress work workbook working workinsingapore workplace world worldmap wp xdcc yahoo youth youtube zvc zvs

Copy this bookmark:



description:


tags: