GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Gitwash clarifications by mdboom · Pull Request #24 · matplotlib/matplotlib

Conversation

@mdboom

@mdboom mdboom commented Feb 26, 2011

Copy link
Copy Markdown
Member

I'm struggling with my early experience with git and these instructions here. I'm trying to clarify these instructions to avoid confusion and future mistakes for others, but I'm not 100% certain these changes are correct.

Additionally, there are some questions in here as comments where I'm not sure how things should be filled in.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@astropy-buildbot
Add some clarifications and comments to the gitwash instructions base…
586baec
…d on my newbie experience.
mdboom
mdboom reviewed Feb 26, 2011
View reviewed changes
Comment thread doc/devel/gitwash/development_workflow.rst Outdated

@mdboom mdboom Feb 26, 2011

Copy link
Copy Markdown
Member Author

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.

Is this best practice, or should I make a local v1.0.x first and then create the feature branch off of that?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@jkseppan jkseppan Feb 26, 2011

Copy link
Copy Markdown
Member

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.

I don't see any real reason to create an intermediate local branch.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ddale ddale Feb 26, 2011

Copy link
Copy Markdown
Contributor

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.

Either one should be fine. Personally, I have a local v1.0.x branch that I set up to track matplotlib/v1.0.x, not darrendale/v1.0.x. I don't want to worry about keeping my remote darrendale/v1.0.x branch in sync with matplotlib/v1.0.x.

I think the best practice can be stated thus: if the remote has a branch v1.0.x and you make a local copy of it, the state of your local copy should not diverge from the remote. Use "git pull" occasionally to keep it in sync with the remote, and especially when you are about to do a merge. The only time the state of your local copy should diverge from the remote is right before a push, when you do the merge. Right after the push, your local copy and the remote are once again in sync.

By the way, this:

git branch my-new-feature remotes/origin/v1.0.x
git checkout my-new-feature

is equivalent to:

git checkout -b my-new-feature remotes/origin/v1.0.x

and it also appears to be equal to:

git checkout -b my-new-feature origin/v1.0.x

One final comment: I find the "origin" and "upstream" convention to be confusing. Instead, I name my remotes after the github profiles: "matplotlib" instead of "upstream", "darrendale" instead of origin. Its a little more concrete.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ddale ddale Feb 26, 2011

Copy link
Copy Markdown
Contributor

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.

After reading Jouni's comment and rereading my own, I think I agree that it is easier to not have an intermediate, local v1.0.x branch.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@jkseppan jkseppan Feb 27, 2011

Copy link
Copy Markdown
Member

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.

I think changing the two commands to "git checkout -b my-new-feature origin/v1.0.x" makes sense.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jkseppan
Further gitwash clarifications
649fcdd
@ivanov

ivanov commented Mar 24, 2011

Copy link
Copy Markdown
Member

can we add a note about doing how useful

git push --dry-run

can be, especially in case you're passing the -f flag.

In my case, I had pushed some commits to github, but then made changes to the last commit that was pushed out using "git commit --amend", which meant (I think) that I had to do a "git push -f" in order to lose the old (unamended) commit.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jkseppan

jkseppan commented Mar 26, 2011

Copy link
Copy Markdown
Member

Can we add a note never to do git push -f on the upstream repository?

You likely did need -f in that case, but your branch was tracking the upstream matplotlib repository and not your own. A possibly safer way to achieve this might have been git push my-repository +my-branch, where the plus means the same as -f.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

efiring
efiring reviewed Apr 2, 2011
View reviewed changes
Comment thread doc/devel/gitwash/development_workflow.rst Outdated

@efiring efiring Apr 2, 2011

Copy link
Copy Markdown
Member

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.

Typo at end of line: you have a semicolon instead of a colon in the next-to-last character.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
mdboom added 2 commits April 4, 2011 08:21
@mdboom
Fix minor typo
13419cc
@mdboom
Minor fixes based on comments in the thread.
4b7f4b8
@mdboom

mdboom commented Apr 4, 2011

Copy link
Copy Markdown
Member Author

I know this pull request has set here for a while. How does everyone feel about this after incorporating Jouni's improvements etc. Ready to merge?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ddale

ddale commented Apr 4, 2011

Copy link
Copy Markdown
Contributor

I wanted to revisit the discussion on integration branches one more time, but I may not get to it for a couple days and don't want to hold up this pull request any longer. If I want to suggest any changes, I can do it in a separate branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mdboom

mdboom commented Apr 4, 2011

Copy link
Copy Markdown
Member Author

Sounds good. Just wanted to make sure there wasn't any advice in here that was actively detrimental ;)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mdboom
mdboom merged commit 4b7f4b8 into matplotlib:v1.0.x Apr 4, 2011
@ivanov

ivanov commented Apr 4, 2011

Copy link
Copy Markdown
Member

some of us are quite capable of being actively detrimental even in the absence of any advice :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@richbwood richbwood mentioned this pull request Dec 19, 2012
test_pcolormesh hangs #1609
Closed
magnunor pushed a commit to magnunor/matplotlib that referenced this pull request Dec 5, 2013
Stefano Mazzucco
Removed keyword argument. Fixes matplotlib#24 in signal branch
fa531f9
BUG-FIX: same as changeset 3affca88be30 but in signal branch
swfiua pushed a commit to swfiua/matplotlib that referenced this pull request Mar 17, 2017
@Ka1lon
Merge pull request matplotlib#24 from swfiua/eric
54596b5
Please Welcome Eric Idle to Karma Pi
@WeatherGod WeatherGod mentioned this pull request Mar 2, 2018
pyplot hangs at plot() #10648
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@mdboom @ivanov @jkseppan @ddale @efiring @astropy-buildbot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.