[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
- Previous message (by thread): [python-committers] Official way to check out a tag?
- Next message (by thread): [python-committers] [RELEASED] Python 3.4.8rc1 and Python 3.5.5rc1 are now available
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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:
- "git clean -ndx" shows all untracked files and directories
- "git clean -fdx" removes all untracked files and directories
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
- Previous message (by thread): [python-committers] Official way to check out a tag?
- Next message (by thread): [python-committers] [RELEASED] Python 3.4.8rc1 and Python 3.5.5rc1 are now available
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]