Giter Site home page Giter Site logo

Comments (1)

wking avatar wking commented on August 14, 2024

On Sun, Nov 02, 2014 at 03:15:19PM -0800, Gabriel A. Devenyi wrote:

swcarpentry/DEPRECATED-bc#789

Here's what we have:

$ git log --graph --topo-order --oneline --decorate | head -n2

  • a8a8643 (HEAD, modular-shell/master, novice-shell) Minor wording changes
  • 9cde165 Small Grammatical Change to List Format

And here's what's in bc:

$ git log --graph --topo-order --oneline --decorate bc/gh-pages -- novice/shell | head -n3

  • e28d108 (origin/pr/789) only keep n,median; remove mean,min,max
  • 4f5652b times for shell, python, git, sql
  • 99e5149 (origin/pr/754) Small Grammatical Change to List Format

The “only keep n,median…” commit is older, but it was merged later
(2014-11-02 1 vs 2014-10-24 2), so we'll add it after in our
series. Where did the swcarpentry/DEPRECATED-bc#789 branch leave bc?

$ git log -1 --date=short --pretty=format:'%h %ad %s' 4f5652b^
5c59eac 2014-10-08 Merge pull request #783 from fmichonneau/menu-bar-firefox

Is that after “Small Grammatical Change…”?

$ git log -1 --date=short --pretty=format:'%h %ad %s' 9cde165
9cde165 2014-09-26 Small Grammatical Change to List Format

yes. So let's re-create the pull request based from our “Small
Grammatical Change…”:

$ git checkout -b wip-pr 9cde165
$ git cherry-pick 4f5652b e28d108
$ git rm -rf novice/
$ git cherry-pick --continue
$ git rm -rf novice/
$ git cherry-pick --continue

What was the merge commit?

$ git log --oneline --first-parent bc/gh-pages | grep '#789'
81b77c3 Merge pull request #789 from chendaniely/time-estimates

Re-create that merge after our “Minor wording changes” (because it
landed later, as I mentioned earlier):

$ git checkout novice-shell
$ NAME=$(git show --pretty=format:%an 81b77c3)
$ EMAIL=$(git show --pretty=format:%ae 81b77c3)
$ DATE=$(git show --pretty=format:%ad 81b77c3)
$ MESSAGE=$(git show --pretty=format:%B 81b77c3)
$ GIT_AUTHOR_NAME="${NAME}" GIT_AUTHOR_EMAIL="${EMAIL}" GIT_AUTHOR_DATE="${DATE}" git merge -m "${MESSAGE}" --no-ff wip-pr

How does it look?

$ git log --graph --topo-order --oneline --decorate | head -n 7

  • 02e76a5 (HEAD, novice-shell) Merge pull request #789 from chendaniely/time-estimates
    |\
    | * bb36f97 (wip-pr) only keep n,median; remove mean,min,max
    | * a474dc3 times for shell, python, git, sql
  • | a8a8643 (modular-shell/master) Minor wording changes
    |/
  • 9cde165 Small Grammatical Change to List Format

Good. Remove the temporary branch:

$ git branch -d wip-pr

And publish:

$ git push -f modular-shell novice-shell:master

Cheers,
Trevor

from shell-novice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.