Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The commit message should describe what has changed. If the change relates to a JIRA ticket it should be prefixed with the ticket identifier. This will then create links in Jira/BitBucket (note that this doesn't work if you are working cross instances - for example using the N3 Jira and Internet Bitbucket).

No Formatcode
git commit -m "RR-123 I changed function val_banana to add a check for apples"

...

This is useful when you try to Push changes to Services to Master and it gets rejected with a message that you need to do this via a pull request.

Run:

  • git fetch origin

  • git rebase origin/master

  • git

    reset

    --hard

    origin/master

    (Check

    before

    doing

    this

    that

    git

    status

    is

    clear)

See https://stackoverflow.com/questions/5066041/moving-committed-but-not-pushed-changes-to-a-new-branch-after-pull

...