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

Doc/git force#24662

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
jklymak merged 7 commits intomatplotlib:mainfromtacaswell:doc/git_force
Dec 9, 2022
Merged

Doc/git force#24662

jklymak merged 7 commits intomatplotlib:mainfromtacaswell:doc/git_force
Dec 9, 2022

Conversation

tacaswell
Copy link
Member

@tacaswelltacaswell commentedDec 8, 2022
edited
Loading

PR Summary

Twice this week I have written out an explanation of force-pushing so I wrote it up for the docs.

There is some minor re-arrangement of the sub-sections that I thought made more sense, but I would drop the first two commits with no argument if people prefer the old order.

melissawm reacted with hooray emoji
@tacaswelltacaswell added this to thev3.7.0 milestoneDec 8, 2022
Copy link
Member

@jklymakjklymak left a comment

Choose a reason for hiding this comment

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

Some suggested tightening. "Make commits inaccessible by leaving no reference..." is maybe conceptually different than "discarding commits" in some way I don't understand, but I don't think it's actually different?

Co-authored-by: Jody Klymak <jklymak@gmail.com>
tacaswelland others added2 commitsDecember 8, 2022 13:38
Co-authored-by: Oscar Gustafsson <oscar.gustafsson@gmail.com>
``--force`` will do the push no matter what, whereas ``--force-with-lease``
will only do the push if the remote branch is where the local ``git`` client
thought it was.

Copy link
Member

@jklymakjklymakDec 9, 2022
edited
Loading

Choose a reason for hiding this comment

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

Suggested change
After the force-push, the tree example will be the same on both the local and ``origin`` branches and the old commits, ``A, B, C``, will be lost (though hopefully squashed into ``A'``):

.. code-block:: none

  D---A'---E cool-feature, origin/cool-feature

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I see what you mean, working on it.

Copy link
Member

Choose a reason for hiding this comment

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

Totally optional - I was about to merge, but thought it would be nice to the back to the example.

Co-authored-by: Jody Klymak <jklymak@gmail.com>
Copy link
Member

@jklymakjklymak left a comment

Choose a reason for hiding this comment

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

I think we should merge.

It would be nice if there were an open-source definitive guide to git that we could just reference for all this stuff instead.gitwash was an attempt at that, but the 5 or so git commands Iactually use were buried in pages of esoterica. It seems a numfocus or scipy opinionated guide to the general git/github development flow that we could all just reference would be good. We have one, xarray has a pretty good one, there are probably others. But there isnothing in here that is unique to Matplotlib.

Copy link
Member

@melissawmmelissawm left a comment

Choose a reason for hiding this comment

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

This looks good to me, thanks@tacaswell ! One thing that may be worth linking to, but could be on a follow up, is some documentation on reflog. I've found not a lot of people know about it and it can be really helpful when trying to understand what happened or in what state the repo is.

@jklymakjklymak merged commitfa9a28b intomatplotlib:mainDec 9, 2022
@tacaswelltacaswell deleted the doc/git_force branchMarch 15, 2023 20:23
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@story645story645story645 left review comments

@oscargusoscargusoscargus left review comments

@jklymakjklymakjklymak approved these changes

@melissawmmelissawmmelissawm approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.7.0
Development

Successfully merging this pull request may close these issues.

5 participants
@tacaswell@story645@jklymak@melissawm@oscargus

[8]ページ先頭

©2009-2025 Movatter.jp