pycharm gitignore file

pycharm 的ignore忽略文件,在这上面的文件将不会被上传到github上面去
gitignore的获取方法,
一是到官网上去下:
github ignore文件下载
二是在pycharm中安装插件:
file==>Setting==>Pulgins==>MakeTplace
搜索ignore安装插件,然后在项目新建中搜索到ignore(git)就好了,如下图

下面附上一份gitignore文件

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-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/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
#   According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
#   However, in case of collaboration, if having platform-specific dependencies or dependencies
#   having no cross-platform support, pipenv may install dependencies that don‘t work, or not
#   install all needed dependencies.
#Pipfile.lock

# 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/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

原文地址:https://blog.51cto.com/853056088/2414015

时间: 2024-11-10 15:37:59

pycharm gitignore file的相关文章

How to create .gitignore file in Windows Explorer

How to create .gitignore file I need to add some rules to my .gitignore file, however, I can't find it in my project folder. Isn't it created automatically by Xcode? If not, what command allows me to create one? echo 'xxx' > .gitignore To get around

pycharm 2019.1没有.ignore插件怎么办

有时候,我们将某些文件放到git工作目录,但又不能提交它们,比如保存了数据库账号密码的配置文件等.git为我们提供了一个解决办法,在git工作区的根目录下创建一个特殊的.gitignore文件,将要忽略的文件名(或格式)填进去,git就会自动忽略这些文件 因为平时主要用python和pycharm,pycharm有个.ignore的插件,主要用来生成各种各样的忽略文件.昨天在pycharm 2019.1 版本上发现设置—Plugins—Marketplace里竟然搜不到 .ignore插件 后来

Git ignore file for Xcode projects

http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects ########################## .gitignore file for Xcode4 and Xcode5 Source projects## Apple bugs, waiting for Apple to fix/respond:## 15564624 - what does the xccheckout file in

windows下pycharm远程调试pyspark

参考http://www.mamicode.com/info-detail-1523356.html1.远端执行:vi /etc/profile添加一行:PYTHONPATH=$SPARK_HOME/python/:$SPARK_HOME/python/lib/py4j-0.9-src.zip或者PYTHONPATH=$SPARK_HOME/python/:$SPARK_HOME/python/lib/py4j-0.8.2.1-src.zip2.安装pip 和 py4j下载pip-9.0.1.t

PyCharm 远程连接linux中Python 运行pyspark

PySpark in PyCharm on a remote server 1.确保remote端Python.spark安装正确 2.remote端安装.设置 vi /etc/profile添加一行:PYTHONPATH=$SPARK_HOME/python/:$SPARK_HOME/python/lib/py4j-0.8.2.1-src.zipsource /etc/profile # 安装pip 和 py4j 下载pip-7.1.2.tartar -xvf pip-7.1.2.tarcd

[Practical Git] Remove unnecessary git tracking with .gitignore files

Most projects have automatically generated files or folders from the operating system, applications, package managers etc. Usually, we don't want to include these types of things in our remote repos because they can clutter the git history/storage an

linux 平台使用 pycharm 安装 Monaco Regular 字体

ubuntu安装字体 复制字体文件到 /usr/share/fonts 目录下 执行命令 sudo mkfontscale sudo mkfontdir sudo fc-cache -fv 然后到 pycharm 的 File --> Settings --> Editor --> Colors&Fonts --> font 然后钩掉 "show only monospaced fonts" ,在 "Primary font" 选择

.gitignore不生效解决办法

.gitignore只能忽略那些原来没有被track的文件,如果某些文件已经被纳入了版本管理中,则修改.gitignore是无效的.那么解决方法就是先把本地缓存删除(改变成未track状态),然后再提交: git rm -r --cached . git add . git commit -m 'update .gitignore file'

Git 笔记 - .gitignore

The rules for the patterns you can put in the .gitignore file are as follows: Blank lines or lines starting with # are ignored. Standard glob patterns work. You can end patterns with a forward slash (/) to specify a directory. You can negate a patter