Repository navigation
Reorganize git commands #263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
c5b768e
c507009
cafd72b
055d155
ae26a03
b4153d1
a3c6133
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,24 +46,14 @@ and password each time you execute a command, such as ``git pull``, | |
| Getting the Source Code | ||
| ----------------------- | ||
|
|
||
| One should always work from a working copy of the CPython source code. | ||
| While it may | ||
| be tempting to work from the copy of Python you already have installed on your | ||
| machine, it is very likely that you will be working from out-of-date code as | ||
| the Python core developers are constantly updating and fixing things in their | ||
| :abbr:`VCS (version control system)`. It also means you will have better tool | ||
| support through the VCS as it will provide a diff tool, etc. | ||
|
|
||
| To get a working copy of the :ref:`in-development <indevbranch>` branch of | ||
| CPython, run:: | ||
|
|
||
| git clone https://github.com/python/cpython | ||
| In order to get a copy of the source code you should first :ref:`fork the | ||
| Python repository on GitHub <fork-cpython>` and then :ref:`create a local | ||
| clone of your private fork and configure the remotes <clone-your-fork>`. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Personal" is probably the word I was looking for, but "your fork" is clear enough without additional qualifiers.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like personal 👍
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I fixed this in #265 |
||
|
|
||
| If you want a working copy of an already-released version of Python, | ||
| i.e., a version in :ref:`maintenance mode <maintbranch>`, you can checkout | ||
| a release branch. For instance, to checkout a working copy of Python 3.5, do:: | ||
|
|
||
| git checkout 3.5 | ||
| a release branch. For instance, to checkout a working copy of Python 3.5, | ||
| do ``git checkout 3.5``. | ||
|
|
||
| You will need to re-compile CPython when you do such an update. | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this doc will often be used by contributors that do not have push privileges for CPython, the upstream remote should point to
https://github.com/python/cpythonin the doc here.Perhaps a note for committers that they should use what you have here for upstream.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICT, with this URL, they still should be able to fetch. If they try to push they will get an error because they don't have privileges, but that's OK since they are not supposed to push on upstream anyway. Unless I'm missing something, this URL should be fine for both contributors and core devs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @willingc and @ezio-melotti. I'm thinking it's fine to leave the
upstreamusing SSH url.For contributors, they would have to configure SSH key anyway.