V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
cls1991
V2EX  ›  Python

快速获取.gitignore 模板

  •  
  •   cls1991 · 2017-12-19 19:41:33 +08:00 · 5453 次点击
    这是一个创建于 2318 天前的主题,其中的信息可能已经有所发展或是发生改变。
    18 条回复    2017-12-20 18:58:11 +08:00
    panpanpan
        1
    panpanpan  
       2017-12-19 21:12:09 +08:00 via iPhone
    你需要 pycharm。。
    mingyun
        2
    mingyun  
       2017-12-19 21:46:08 +08:00
    安装失败
    win7 py3

    readme = f.read()
    UnicodeDecodeError: 'gbk' codec can't decode byte 0xa4 in position 464: illegal multibyte sequence
    xlui
        3
    xlui  
       2017-12-19 21:50:28 +08:00 via Android   ❤️ 2
    cls1991
        4
    cls1991  
    OP
       2017-12-19 22:01:48 +08:00
    @panpanpan 不限于 python
    cls1991
        5
    cls1991  
    OP
       2017-12-19 22:02:31 +08:00
    @xlui 离线环境也可以使用
    cls1991
        6
    cls1991  
    OP
       2017-12-19 22:03:48 +08:00
    @mingyun windows 平台我还没测试, 能帮忙 fix 一下吗?
    chinvo
        7
    chinvo  
       2017-12-19 22:04:42 +08:00   ❤️ 1
    chinvo
        8
    chinvo  
       2017-12-19 22:05:08 +08:00
    个人认为不会有太多离线环境下生成新 gitignore 的需求吧
    cls1991
        9
    cls1991  
    OP
       2017-12-19 22:12:41 +08:00
    @chinvo 哈哈, 其实我是懒, 这种固定数据,没必要每次去打开网址获取; 就像翻译, 我也直接用 https://github.com/soimort/translate-shell, 懒得去打开其他工具.
    chinvo
        10
    chinvo  
       2017-12-19 22:30:20 +08:00
    @cls1991 其实吧,gitignore 也不是个经常要获取的东西。

    不过这个项目不错,star 了
    BeginMan
        11
    BeginMan  
       2017-12-20 00:43:00 +08:00
    zhengxiaowai
        12
    zhengxiaowai  
       2017-12-20 09:57:58 +08:00   ❤️ 1
    你需要这个

    https://www.gitignore.io/

    还带有 Command Line
    hzw94
        13
    hzw94  
       2017-12-20 10:12:08 +08:00
    idea 自动生成.gitignore 模板
    param
        14
    param  
       2017-12-20 12:07:55 +08:00 via Android
    还是喜欢自己写,遇到需要 ignore 的内容再加进去
    cls1991
        15
    cls1991  
    OP
       2017-12-20 12:30:43 +08:00
    @param 毕竟模板可以让我们少干活
    corningsun
        16
    corningsun  
       2017-12-20 17:30:46 +08:00
    cls1991
        17
    cls1991  
    OP
       2017-12-20 17:59:40 +08:00
    @corningsun gitlab 等自建平台; 引入.gitignore 模板的目的是规范项目
    param
        18
    param  
       2017-12-20 18:58:11 +08:00 via Android
    @cls1991 不喜欢额外加一些用不着的东西。。。保持代码的纯净。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4879 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 09:47 · PVG 17:47 · LAX 02:47 · JFK 05:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.