Update Deep Into Pharo

While reading Deep into Pharo, in the profiling section I noticed the text old object has greater change to live, it seems fairly clear that this should have a greater chance to live. The code for this book is stored on https://github.com/SquareBracketAssociates/DeepIntoPharo. Steps for updating this:

  1. From the Square Bracket's Deep into Pharo, click Fork on the far right:
    Fork
    This should redirect you to the DeepIntoPharo repository in your Git account
  2. Clone the repository to your local unix command line:

    0 Johns-MacBook-Pro$ git clone https://github.com/jborden23/DeepIntoPharo.git
    Cloning into 'DeepIntoPharo'...
    remote: Counting objects: 4054, done.
    remote: Total 4054 (delta 0), reused 0 (delta 0), pack-reused 4054
    Receiving objects: 100% (4054/4054), 89.39 MiB | 5.41 MiB/s, done.
    Resolving deltas: 100% (2043/2043), done.
    Checking out files: 100% (429/429), done.
    0 Johns-MacBook-Pro$ 

    Installing git can be done from here, but I just used the default Mac install (version 2.13.6).

  3. Make the change.
  4. Add the updated files so git lists these as changes you are aware that are being updated:

    0 Johns-MacBook-Pro$ git add Profiling.tex

  5. Commit the change, in this example I'm using the -m flag with the message, however not using this flag and using the editor to create a descriptive commit message is a better practice:

    0 Johns-MacBook-Pro$ git commit -m 'Updated "greater change to" to "greater chance to".'
    [master 4b0d3585] Updated "greater change to" to "greater chance to".
     1 file changed, 1 insertion(+), 1 deletion(-)

  6. Push the change to your account on GitHub:

    0 Johns-MacBook-Pro$ git push
    Username for 'https://github.com': jborden23
    Password for 'https://jborden23@github.com':
    Counting objects: 4, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (4/4), done.
    Writing objects: 100% (4/4), 442 bytes | 442.00 KiB/s, done.
    Total 4 (delta 2), reused 0 (delta 0)
    remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
    To https://github.com/jborden23/DeepIntoPharo.git
       3346f53b..4b0d3585  master -> master

    Making config changes can remove the username question, copying your ssh key can remove the password prompt.

  7. Create a pull request - in your repository click New pull request:
    New pull request
    Fill in the details of why the changes are benificial.
  8. Wait for your request to be accepted, it may take a few days.

Posted by John Borden at 3 December 2017, 10:20 pm with tags Smalltalk, Git link