Git Ignore란
gitignore파일은 비 추적 파일을 지정합니다. Git에 의해 추적된 파일은 별도의 영향을받지 않습니다.
gitignore파일의 각 행은 특정한 패턴을 지닙니다.
>Git은 경로를 무시할지 여부를 결정할 때 일반적으로 gitignore다음 우선 순위와 함께 여러 소스의 패턴을 가장 높은 순서에서 가장 낮은 순서로 검사합니다 (한 수준의 우선 순위 내에서 마지막 일치하는 패턴이 결과를 결정합니다).
.gitignore경로와 같은 디렉토리 또는 상위 디렉토리 의 파일에서 읽은 패턴은 상위 레벨 파일 (작업 트리의 최상위 레벨까지)의 패턴이 하위 레벨 파일의 패턴에 의해 덮어 쓰여지고 파일. 이 패턴은 .gitignore파일 의 위치에 상대적으로 일치 합니다. 프로젝트는 일반적으로 프로젝트 .gitignore저장소의 일부로 생성 된 파일 패턴을 포함하는 해당 파일을 저장소에 포함합니다.
.gitignore Command
git rm -r --cached .
git add .
git commit -m "fixed untracked files”
Git Ignore For Android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Built application files | |
*.apk | |
*.ap_ | |
# Files for the ART/Dalvik VM | |
*.dex | |
# Java class files | |
*.class | |
# Generated files | |
bin/ | |
gen/ | |
out/ | |
# Gradle files | |
.gradle/ | |
build/ | |
# Local configuration file (sdk path, etc) | |
local.properties | |
# Proguard folder generated by Eclipse | |
proguard/ | |
# Log Files | |
*.log | |
# Android Studio Navigation editor temp files | |
.navigation/ | |
# Android Studio captures folder | |
captures/ | |
# Intellij | |
*.iml | |
.idea/ | |
# Keystore files | |
*.jks | |
# External native build folder generated in Android Studio 2.2 and later | |
.externalNativeBuild |
Git Ignore For Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so | |
#idea | |
.idea/ | |
# Distribution / packaging | |
.Python | |
build/ | |
develop-eggs/ | |
dist/ | |
downloads/ | |
eggs/ | |
.eggs/ | |
lib/ | |
lib64/ | |
parts/ | |
sdist/ | |
var/ | |
wheels/ | |
*.egg-info/ | |
.installed.cfg | |
*.egg | |
MANIFEST | |
# PyInstaller | |
# Usually these files are written by a python script from a template | |
# before PyInstaller builds the exe, so as to inject date/other infos into it. | |
*.manifest | |
*.spec | |
# Installer logs | |
pip-log.txt | |
pip-delete-this-directory.txt | |
# Unit test / coverage reports | |
htmlcov/ | |
.tox/ | |
.coverage | |
.coverage.* | |
.cache | |
nosetests.xml | |
coverage.xml | |
*.cover | |
.hypothesis/ | |
# Translations | |
*.mo | |
*.pot | |
# Django stuff: | |
*.log | |
.static_storage/ | |
.media/ | |
local_settings.py | |
# Flask stuff: | |
instance/ | |
.webassets-cache | |
# Scrapy stuff: | |
.scrapy | |
# Sphinx documentation | |
docs/_build/ | |
# PyBuilder | |
target/ | |
# Jupyter Notebook | |
.ipynb_checkpoints | |
# pyenv | |
.python-version | |
# celery beat schedule file | |
celerybeat-schedule | |
# SageMath parsed files | |
*.sage.py | |
# Environments | |
.env | |
.venv | |
env/ | |
venv/ | |
ENV/ | |
env.bak/ | |
venv.bak/ | |
# Spyder project settings | |
.spyderproject | |
.spyproject | |
# Rope project settings | |
.ropeproject | |
# mkdocs documentation | |
/site | |
# mypy | |
.mypy_cache/ | |