When creating .gitignore with gibo, I didn't have to write .python-version.

target

The content of this article is targeted at such people

--Using gibo (software that creates .gitignore) --Using pyenv (software that manages multiple environments and multiple versions of Python) --I have a Git repository in a Python environment --Until now, you had to manually add .python-version to .gitignore.

Someone (mainly me)

Main subject

I think many people use pyenv when managing multiple environments and multiple versions of Python.

To tell pyenv which Python environment to use in that directory, use a file called .python-version (the pyenv local command creates this).

For this reason, I've ever used to generate a .gitignore that excludes environment-dependent .python-versions from Git repositories.

$ gibo Python > .gitignore
$ echo '.python-version' >> .gitignore

And so on.

However, around January 28, 2016, a pull request that also ignores .python-version was merged into github / gitignore (referenced by gibo). ..

https://github.com/github/gitignore/pull/1801 https://github.com/github/gitignore/commit/76b87217c836fa814e22763dc6b12b09ab86513a

.python-version が追加された

thanks to,

$ gibo Python > .gitignore

It's just now.

gibo update

Of course, the gitignore boilerplate referenced by gibo must be updated to the one after the commit was merged.

$ gibo --update

Can be updated with.

Recommended Posts

When creating .gitignore with gibo, I didn't have to write .python-version.
A note I was addicted to when creating a table with SQLAlchemy
I want to write to a file with Python
When I tried to create a virtual environment with Python, it didn't work
I didn't have to write a decorator in the class Thank you contextmanager
When I try to push with heroku, it doesn't work
I didn't want to write the AWS key in the program
Write to csv with Python
A story that didn't work when I tried to log in with the Python requests module
A memorandum when I tried to get it automatically with selenium
I get an error when trying to install maec 4.0.1.0 with pip
[Tips] How to do template extends when creating HTML with django
[Python] Write to csv file with Python
Write FW to TWE-Lite with TWE-Lite R.
I want to do ○○ with Pandas
I want to debug with Python
I want to get angry with my mom when my memory is tight
I was addicted to creating a Python venv environment with VS Code
I tried to make a calculator with Tkinter so I will write it
I get a UnicodeDecodeError when trying to connect to oracle with python sqlalchemy
How to write offline real time I tried to solve E12 with python