赞
踩
工程文件开始进行git init的时候没有加入gitignore文件,后来想到要加入,可以通过下面的指令进行。
第一、.gitignore文件要放在.git文件夹外面,你在哪里运行的git init,就应该吧.ignore文件放在哪里
第二、运行下面的指令对工程文件进行重新跟踪。
git rm -r --cached .
git add .
git commit -m "update .gitignore"
# Project Files !*.OPT *.UVGUI.* *.UVGUIX.* !*.UVMPW !*.UVPROJ !*.UVPROJX !*.UVOPT !*.UVOPTX !*.UV2 # Source Files !*.A51 !*.A66 !*.C !*.CPP !*.H !*.INC !*.S !*.SRC # Listing Files *.COD *.HTM *.I *.LST *.MAP *.M51 *.M66 *.SCR # Object and HEX Files # *. *.AXF *.B[00-31] *.D *.CRF *.ELF *.HEX *.H86 *.LIB *.OBJ *.O *.SBR *.o *.map *.dep *.hex *.htm *.crf *.axf *.build_log.htm # Build Files *.BAT *._IA *.__I *._II *.SCR # Debugger Files *.INI # Other Files *.BUILD_LOG.HTM *.CDB *.DEP *.IC *.LIN *.LNP *.ORC *.PACK *.PDSC *.PLG PROJECT_GUI.XSD PROJECT_MPW.XSD PROJECT_OPT.XSD PROJECT_PROJ.XSD *.SCT *.UVL *.UVLA *.UVTSK *.SFD *.SFR *.SVD.XML *.SVD *.XML
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。