Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ezio-melotti merged 7 commits intopython:masterfromezio-melotti:reorganize-git-commands
Sep 7, 2017
Merged

Reorganize git commands#263

ezio-melotti merged 7 commits intopython:masterfromezio-melotti:reorganize-git-commands
Sep 7, 2017

Conversation

ezio-melotti
Copy link
Member

@ezio-melottiezio-melotti commentedSep 5, 2017
edited
Loading

This is part of#120. The goal of this PR is to reorganize the git commands, that are currently scattered around a few pages.

The steps are:

  • Move the minimal configuration instructions
  • Move the remote configuration instructions
  • Move the pushing changes and synching remotes sections.
  • Review what is left of committing.rst

The end result will be:

  • setup.rst with basic setup instructions and links to the commands
  • pullrequest.rst with the bulk of commands that are common to both contributors and core devs in a reasonable order
  • committing.rst with info specific for core devs
  • gitbootcamp.rst with a FAQ-like, ctrl-f-able list of most of the git commands

See also#262.


Reverts python/cpython#111.
Reason: This commit broke the buildbot.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This has been moved after the section about backporting.

The above steps can be executed against any branch you wish to, just replace master
with an appropriate branch name.


Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

All the stuff in this chunk either got added to the bootcamp or it was already there

@@ -454,34 +336,19 @@ Developers can apply labels to GitHub pull requests).
.. _cherry_picker.py: https://github.com/python/core-workflow/tree/master/cherry_picker


.. _forking:

Forking repository
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is already in the bootcamp (and somewhere else too).


Maintaining a repository
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

After asking around during the sprint, the consensus was to remove this section.

@ezio-melottiezio-melotti changed the titleWIP: Reorganize git commandsReorganize git commandsSep 6, 2017
Copy link
Collaborator

@willingcwillingc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks great@ezio-melotti. There's a few small items and then it's ready to merge. Thanks 👍


origin git@github.com:<your-username>/devguide.git (fetch)
origin git@github.com:<your-username>/devguide.git (push)
upstream git@github.com:python/devguide.git (fetch)
Copy link
Collaborator

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 tohttps://github.com/python/cpython in the doc here.

Perhaps a note for committers that they should use what you have here for upstream.

Copy link
MemberAuthor

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.

Copy link
Member

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 theupstream using SSH url.
For contributors, they would have to configure SSH key anyway.

``git push``, or ``git fetch``.

``git push``, or ``git fetch``. On Windows, you should also
:ref:`enable autocrlf <autocrlf>`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

NIce! 👍

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>`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

private I know what you are trying to say here but the fork is public. I think it is better to use...clone of your fork and configure...

ezio-melotti reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

The 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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I like personal 👍

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I fixed this in#265

willingc reacted with thumbs up emoji
Copy link
Collaborator

@willingcwillingc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@ezio-melottiezio-melotti merged commit90747c5 intopython:masterSep 7, 2017
@ezio-melottiezio-melotti deleted the reorganize-git-commands branchSeptember 7, 2017 20:39
@ezio-melotti
Copy link
MemberAuthor

Thanks for the reviews!

@willingc
Copy link
Collaborator

Way to go@ezio-melotti on reorganizing 🍰

ezio-melotti reacted with thumbs up emoji

AA-Turner pushed a commit to AA-Turner/devguide that referenced this pull requestJun 17, 2022
* Move the minimal configuration instructions.* Move the remote configuration instructions.* Move the pushing changes and synching remotes sections.* First cleanup pass.* Remove the "Maintaining a repository" section.* Move the "Reverting a Merged Pull Request" section under "Working with Git".* Fix incorrect markup.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@willingcwillingcwillingc approved these changes

@MariattaMariattaMariatta approved these changes

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@ezio-melotti@willingc@Mariatta@the-knights-who-say-ni

[8]ページ先頭

©2009-2025 Movatter.jp