[python-committers] Official way to check out a tag? (original) (raw)

Victor Stinner victor.stinner at gmail.com
Tue Jan 23 05:42:04 EST 2018


2018-01-23 11:29 GMT+01:00 Antoine Pitrou <antoine at python.org>:

Did you try "make distclean"?

Oh by the way, it took me year to discover the cool builtin Git function:

BE CAREFUL: "git clean -fdx" really removes anything not tracked by Git, including your local files and all your local directories.

You may use "make clean" or even "make distclean" before "git clean -ndx" to better see what will be removed.

In short, "git clean -fdx" behaves as "cd ..; rm -rf python; git clone https://github.com/python/cpython python; cd python", without the need to download everything again ;-)

When I have a local patch like test.patch, I move it to the parent directory, run git clean, and move back the file.

Victor



More information about the python-committers mailing list